Generic network interface header. More...
Generic network interface header.
The link layer addresses included in this header are put in memory directly following this struct.
#include <hdr.h>
Data Fields | |
uint8_t | src_l2addr_len |
length of l2 source address in byte | |
uint8_t | dst_l2addr_len |
length of l2 destination address in byte | |
kernel_pid_t | if_pid |
PID of network interface. | |
uint8_t | flags |
flags as defined above | |
uint8_t | lqi |
LQI of received packet or GNRC_NETIF_HDR_NO_LQI. | |
int16_t | rssi |
RSSI of received packet or GNRC_NETIF_HDR_NO_RSSI. | |
uint64_t | timestamp |
Timestamp of reception in nanoseconds since epoch. | |
uint8_t gnrc_netif_hdr_t::dst_l2addr_len |
kernel_pid_t gnrc_netif_hdr_t::if_pid |
uint8_t gnrc_netif_hdr_t::lqi |
LQI of received packet or GNRC_NETIF_HDR_NO_LQI.
int16_t gnrc_netif_hdr_t::rssi |
RSSI of received packet or GNRC_NETIF_HDR_NO_RSSI.
uint8_t gnrc_netif_hdr_t::src_l2addr_len |
uint64_t gnrc_netif_hdr_t::timestamp |
Timestamp of reception in nanoseconds since epoch.
This field is only provided if module gnrc_netif_timestamp
is used. Keep in mind that when the hardware does not provide timestamping, the network device driver could choose to provide this in software, which adds the delay and jitter of the ISR handling to the timestamp. Please keep also in mind that a hardware implementation might not be able to reliable timestamp every frame - e.g. a full-duplex wired interface might be unable to timestamp a received frame while timestamping an outgoing frame.