FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
packet.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gre_header_t
 

Macros

#define foreach_gre_protocol
 
#define GRE_FLAGS_CHECKSUM   (1 << 15)
 
#define GRE_FLAGS_ROUTING   (1 << 14)
 
#define GRE_FLAGS_KEY   (1 << 13)
 
#define GRE_FLAGS_SEQUENCE   (1 << 12)
 
#define GRE_FLAGS_STRICT_SOURCE_ROUTE   (1 << 11)
 
#define GRE_SUPPORTED_VERSION   0
 
#define GRE_VERSION_MASK   0x7
 
#define ERSPAN_HDR2   0x1000180000000000ul
 

Enumerations

enum  gre_protocol_t { foreach_gre_protocol }
 

Functions

typedef CLIB_PACKED (struct{u32 seq_num;union{struct{u16 ver_vlan;u16 cos_en_t_session;u32 res_index;}t2;u64 t2_u64;};}) erspan_t2_t
 
typedef CLIB_PACKED (struct{gre_header_t gre;erspan_t2_t erspan;}) erspan_t2_header_t
 

Macro Definition Documentation

#define ERSPAN_HDR2   0x1000180000000000ul

Definition at line 164 of file packet.h.

#define foreach_gre_protocol
Value:
_ (0x0800, ip4) \
_ (0x86DD, ip6) \
_ (0x6558, teb) \
_ (0x0806, arp) \
_ (0x8847, mpls_unicast) \
_ (0x88BE, erspan) \
_ (0x894F, nsh)

Definition at line 21 of file packet.h.

#define GRE_FLAGS_CHECKSUM   (1 << 15)

Definition at line 42 of file packet.h.

#define GRE_FLAGS_KEY   (1 << 13)

Definition at line 46 of file packet.h.

#define GRE_FLAGS_ROUTING   (1 << 14)

Definition at line 45 of file packet.h.

#define GRE_FLAGS_SEQUENCE   (1 << 12)

Definition at line 47 of file packet.h.

#define GRE_FLAGS_STRICT_SOURCE_ROUTE   (1 << 11)

Definition at line 48 of file packet.h.

#define GRE_SUPPORTED_VERSION   0

Definition at line 51 of file packet.h.

#define GRE_VERSION_MASK   0x7

Definition at line 52 of file packet.h.

Enumeration Type Documentation

Enumerator
foreach_gre_protocol 

Definition at line 30 of file packet.h.

Function Documentation

typedef CLIB_PACKED ( struct{u32 seq_num;union{struct{u16 ver_vlan;u16 cos_en_t_session;u32 res_index;}t2;u64 t2_u64;};}  )
typedef CLIB_PACKED ( struct{gre_header_t gre;erspan_t2_t erspan;}  )