Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
VLAN definitions and helpers. More...
Macros | |
#define | NET_VLAN_TAG_UNSPEC 0x0fff |
Unspecified VLAN tag value. | |
Functions | |
static uint16_t | net_eth_vlan_get_vid (uint16_t tci) |
Get VLAN identifier from TCI. | |
static uint8_t | net_eth_vlan_get_dei (uint16_t tci) |
Get Drop Eligible Indicator from TCI. | |
static uint8_t | net_eth_vlan_get_pcp (uint16_t tci) |
Get Priority Code Point from TCI. | |
static uint16_t | net_eth_vlan_set_vid (uint16_t tci, uint16_t vid) |
Set VLAN identifier to TCI. | |
static uint16_t | net_eth_vlan_set_dei (uint16_t tci, bool dei) |
Set Drop Eligible Indicator to TCI. | |
static uint16_t | net_eth_vlan_set_pcp (uint16_t tci, uint8_t pcp) |
Set Priority Code Point to TCI. | |
VLAN definitions and helpers.
#define NET_VLAN_TAG_UNSPEC 0x0fff |
#include <zephyr/net/ethernet_vlan.h>
Unspecified VLAN tag value.
#include <zephyr/net/ethernet_vlan.h>
Get Drop Eligible Indicator from TCI.
tci | VLAN tag control information. |
#include <zephyr/net/ethernet_vlan.h>
Get Priority Code Point from TCI.
tci | VLAN tag control information. |
#include <zephyr/net/ethernet_vlan.h>
Get VLAN identifier from TCI.
tci | VLAN tag control information. |
#include <zephyr/net/ethernet_vlan.h>
Set Drop Eligible Indicator to TCI.
tci | VLAN tag control information. |
dei | Drop eligible indicator. |
#include <zephyr/net/ethernet_vlan.h>
Set Priority Code Point to TCI.
tci | VLAN tag control information. |
pcp | Priority code point. |
#include <zephyr/net/ethernet_vlan.h>
Set VLAN identifier to TCI.
tci | VLAN tag control information. |
vid | VLAN identifier. |