Loading...
Searching...
No Matches

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 126 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.
 

Field Documentation

◆ dst_l2addr_len

uint8_t gnrc_netif_hdr_t::dst_l2addr_len

length of l2 destination address in byte

Definition at line 128 of file hdr.h.

◆ flags

uint8_t gnrc_netif_hdr_t::flags

flags as defined above

Definition at line 130 of file hdr.h.

◆ if_pid

kernel_pid_t gnrc_netif_hdr_t::if_pid

PID of network interface.

Definition at line 129 of file hdr.h.

◆ lqi

uint8_t gnrc_netif_hdr_t::lqi

LQI of received packet or GNRC_NETIF_HDR_NO_LQI.

Definition at line 134 of file hdr.h.

◆ rssi

int16_t gnrc_netif_hdr_t::rssi

RSSI of received packet or GNRC_NETIF_HDR_NO_RSSI.

Definition at line 138 of file hdr.h.

◆ src_l2addr_len

uint8_t gnrc_netif_hdr_t::src_l2addr_len

length of l2 source address in byte

Definition at line 127 of file hdr.h.

◆ timestamp

uint64_t gnrc_netif_hdr_t::timestamp

Timestamp of reception in nanoseconds since epoch.

Note
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 155 of file hdr.h.


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