Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
net_if_dev Struct Reference

Network Interface Device structure. More...

#include <net_if.h>

Data Fields

const struct devicedev
 
const struct net_l2 *const l2
 
voidl2_data
 
atomic_t flags [ATOMIC_BITMAP_SIZE(NET_IF_NUM_FLAGS)]
 
struct net_linkaddr link_addr
 
uint16_t mtu
 

Detailed Description

Network Interface Device structure.

Used to handle a network interface on top of a device driver instance. There can be many net_if_dev instance against the same device.

Such interface is mainly to be used by the link layer, but is also tight to a network context: it then makes the relation with a network context and the network device.

Because of the strong relationship between a device driver and such network interface, each net_if_dev should be instantiated by

Field Documentation

◆ dev

const struct device* net_if_dev::dev

The actually device driver instance the net_if is related to

◆ flags

atomic_t net_if_dev::flags[ATOMIC_BITMAP_SIZE( NET_IF_NUM_FLAGS)]

◆ l2

const struct net_l2* const net_if_dev::l2

Interface's L2 layer

◆ l2_data

void* net_if_dev::l2_data

Interface's private L2 data pointer

◆ link_addr

struct net_linkaddr net_if_dev::link_addr

The hardware link address

◆ mtu

uint16_t net_if_dev::mtu

The hardware MTU


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