FD.io VPP  v18.01.2-1-g9b554f3
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 uword ethernet_address_is_locally_administered (u8 *a)
 
static void ethernet_address_set_locally_administered (u8 *a)
 
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

#define ETHERNET_ADDRESS_MULTICAST   1

Definition at line 61 of file packet.h.

#define ETHERNET_ADDRESS_UNICAST   0

Definition at line 60 of file packet.h.

#define ETHERNET_N_PBB   (1 << 24)

Definition at line 122 of file packet.h.

#define ETHERNET_N_VLAN   (1 << 12)

Definition at line 88 of file packet.h.

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

Definition at line 45 of file packet.h.

Enumeration Type Documentation

Definition at line 43 of file packet.h.

Function Documentation

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;}  )
static uword ethernet_address_cast ( u8 a)
inlinestatic

Definition at line 65 of file packet.h.

+ Here is the caller graph for this function:

static uword ethernet_address_is_locally_administered ( u8 a)
inlinestatic

Definition at line 71 of file packet.h.

static void ethernet_address_set_locally_administered ( u8 a)
inlinestatic

Definition at line 77 of file packet.h.