Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
net_eth_mac_config Struct Reference

MAC address configuration. More...

#include <zephyr/net/ethernet.h>

Data Fields

enum net_eth_mac_type type
 The configuration type.
uint8_t addr [6U]
 The static MAC address part.
uint8_t addr_len
 The length of the statically provided part.
struct nvmem_cell cell
 The NVMEM cell to read the MAC address from.

Detailed Description

MAC address configuration.

Field Documentation

◆ addr

uint8_t net_eth_mac_config::addr[6U]

The static MAC address part.

If less than 6 bytes are provided, this can be used as a prefix for a random generated MAC address or data read from an NVMEM cell. For example to set the OUI.

◆ addr_len

uint8_t net_eth_mac_config::addr_len

The length of the statically provided part.

◆ cell

struct nvmem_cell net_eth_mac_config::cell

The NVMEM cell to read the MAC address from.

Attention
Available only when the following Kconfig option is enabled: CONFIG_NVMEM.

◆ type

enum net_eth_mac_type net_eth_mac_config::type

The configuration type.


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