mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 20:27:53 +00:00
Add TX timestamp loopback support to the simulator network driver. When a packet tagged with io_conn (SO_TIMESTAMPING TX) is sent, the driver clones the packet, generates a software timestamp, and queues it for loopback through the RX path. The protocol layer (UDP/PKT) then delivers the timestamp via MSG_ERRQUEUE. - Add tstampq IOB queue to sim_netdev_s for loopback packets. - In netdriver_send(), clone timestamped packets with realtime clock and notify RX ready. - In netdriver_recv(), return loopback packets before reading from the tap device. Signed-off-by: wenquan1 <wenquan1@xiaomi.com> |
||
|---|---|---|
| .. | ||
| include | ||
| src | ||
| CMakeLists.txt | ||
| Kconfig | ||