FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
packet.h File Reference
+ Include dependency graph for packet.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ethernet_header_t
 
struct  ethernet_vlan_header_t
 
struct  ethernet_vlan_header_tv_t
 
struct  ethernet_pbb_header_t
 

Macros

#define ethernet_type(n, s)   ETHERNET_TYPE_##s = n,
 
#define ETHERNET_ADDRESS_UNICAST   0
 
#define ETHERNET_ADDRESS_MULTICAST   1
 
#define ETHERNET_N_VLAN   (1 << 12)
 
#define ETHERNET_N_PBB   (1 << 24)
 

Enumerations

enum  ethernet_type_t
 

Functions

static uword ethernet_address_cast (u8 *a)
 
static int ethernet_address_is_broadcast (u8 *a)
 
static uword ethernet_address_is_locally_administered (u8 *a)
 
static void ethernet_address_set_locally_administered (u8 *a)
 
static int eh_dst_addr_to_rx_ctype (ethernet_header_t *eh)
 
static int eh_dst_addr_to_tx_ctype (ethernet_header_t *eh)
 
static void ethernet_vlan_header_set_priority_net_order (ethernet_vlan_header_t *h, u8 prio)
 
static u8 ethernet_vlan_header_get_priority_net_order (ethernet_vlan_header_t *h)
 
typedef CLIB_PACKED (struct { u8 b_dst_address[6];u8 b_src_address[6];u16 b_type;u16 priority_dei_id;u16 i_type;u32 priority_dei_uca_res_sid;}) ethernet_pbb_header_packed_t
 

Macro Definition Documentation

◆ ETHERNET_ADDRESS_MULTICAST

#define ETHERNET_ADDRESS_MULTICAST   1

Definition at line 63 of file packet.h.

◆ ETHERNET_ADDRESS_UNICAST

#define ETHERNET_ADDRESS_UNICAST   0

Definition at line 62 of file packet.h.

◆ ETHERNET_N_PBB

#define ETHERNET_N_PBB   (1 << 24)

Definition at line 184 of file packet.h.

◆ ETHERNET_N_VLAN

#define ETHERNET_N_VLAN   (1 << 12)

Definition at line 133 of file packet.h.

◆ ethernet_type

#define ethernet_type (   n,
 
)    ETHERNET_TYPE_##s = n,

Definition at line 47 of file packet.h.

Enumeration Type Documentation

◆ ethernet_type_t

Definition at line 45 of file packet.h.

Function Documentation

◆ CLIB_PACKED()

typedef CLIB_PACKED ( struct { u8 b_dst_address[6];u8 b_src_address[6];u16 b_type;u16 priority_dei_id;u16 i_type;u32 priority_dei_uca_res_sid;}  )

◆ eh_dst_addr_to_rx_ctype()

static int eh_dst_addr_to_rx_ctype ( ethernet_header_t eh)
inlinestatic

Definition at line 92 of file packet.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ eh_dst_addr_to_tx_ctype()

static int eh_dst_addr_to_tx_ctype ( ethernet_header_t eh)
inlinestatic

Definition at line 110 of file packet.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ethernet_address_cast()

static uword ethernet_address_cast ( u8 a)
inlinestatic

Definition at line 67 of file packet.h.

+ Here is the caller graph for this function:

◆ ethernet_address_is_broadcast()

static int ethernet_address_is_broadcast ( u8 a)
inlinestatic

Definition at line 73 of file packet.h.

+ Here is the caller graph for this function:

◆ ethernet_address_is_locally_administered()

static uword ethernet_address_is_locally_administered ( u8 a)
inlinestatic

Definition at line 80 of file packet.h.

◆ ethernet_address_set_locally_administered()

static void ethernet_address_set_locally_administered ( u8 a)
inlinestatic

Definition at line 86 of file packet.h.

◆ ethernet_vlan_header_get_priority_net_order()

static u8 ethernet_vlan_header_get_priority_net_order ( ethernet_vlan_header_t h)
inlinestatic

Definition at line 150 of file packet.h.

+ Here is the caller graph for this function:

◆ ethernet_vlan_header_set_priority_net_order()

static void ethernet_vlan_header_set_priority_net_order ( ethernet_vlan_header_t h,
u8  prio 
)
inlinestatic

Definition at line 140 of file packet.h.

+ Here is the caller graph for this function: