File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ void gnrc_netif_hdr_print(gnrc_netif_hdr_t *hdr)
2424
2525 printf ("if_pid: %u " , (unsigned ) hdr -> if_pid );
2626 printf ("rssi: %d " , (signed ) hdr -> rssi );
27+ #if IS_USED (MODULE_GNRC_NETIF_TIMESTAMP )
28+ /* Only last 32 bits are printed due to printf from avg-libc doesn't support 64-bit values */
29+ printf (" timestamp: %" PRIu32 ".%09" PRIu32 " " , (uint32_t )(hdr -> timestamp / NS_PER_SEC ),
30+ (uint32_t )(hdr -> timestamp % NS_PER_SEC ));
31+ #endif
2732 printf ("lqi: %u\n" , (unsigned ) hdr -> lqi );
2833 printf ("flags: " );
2934
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ USEMODULE += netdev_ieee802154
1111USEMODULE += netdev_test
1212USEMODULE += od
1313
14+ # uncomment the line to have and see timestamp in the netif header
15+ # USEMODULE += gnrc_netif_timestamp
16+
1417# deactivate automatically emitted packets from IPv6 neighbor discovery
1518CFLAGS += -DCONFIG_GNRC_IPV6_NIB_ARSM=0
1619CFLAGS += -DCONFIG_GNRC_IPV6_NIB_SLAAC=0
You can’t perform that action at this time.
0 commit comments