Generic network interface header. More...

Detailed Description

Generic network interface header.

The link layer addresses included in this header are put in memory directly following this struct.

Definition at line 125 of file hdr.h.

#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. More...

Field Documentation

◆ timestamp

uint64_t gnrc_netif_hdr_t::timestamp

Timestamp of reception in nanoseconds since epoch.

Only when GNRC_NETIF_HDR_FLAGS_TIMESTAMP is set, this field contains valid info.

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.

Definition at line 154 of file hdr.h.

The documentation for this struct was generated from the following file: