FD.io VPP  v21.06-3-gbb25fbf28
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

◆ ERSPAN_HDR2

#define ERSPAN_HDR2   0x1000180000000000ul

Definition at line 164 of file packet.h.

◆ foreach_gre_protocol

#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.

◆ GRE_FLAGS_CHECKSUM

#define GRE_FLAGS_CHECKSUM   (1 << 15)

Definition at line 42 of file packet.h.

◆ GRE_FLAGS_KEY

#define GRE_FLAGS_KEY   (1 << 13)

Definition at line 46 of file packet.h.

◆ GRE_FLAGS_ROUTING

#define GRE_FLAGS_ROUTING   (1 << 14)

Definition at line 45 of file packet.h.

◆ GRE_FLAGS_SEQUENCE

#define GRE_FLAGS_SEQUENCE   (1 << 12)

Definition at line 47 of file packet.h.

◆ GRE_FLAGS_STRICT_SOURCE_ROUTE

#define GRE_FLAGS_STRICT_SOURCE_ROUTE   (1 << 11)

Definition at line 48 of file packet.h.

◆ GRE_SUPPORTED_VERSION

#define GRE_SUPPORTED_VERSION   0

Definition at line 51 of file packet.h.

◆ GRE_VERSION_MASK

#define GRE_VERSION_MASK   0x7

Definition at line 52 of file packet.h.

Enumeration Type Documentation

◆ gre_protocol_t

Enumerator
foreach_gre_protocol 

Definition at line 30 of file packet.h.

Function Documentation

◆ CLIB_PACKED() [1/2]

typedef CLIB_PACKED ( struct { gre_header_t gre;erspan_t2_t erspan;}  )

◆ CLIB_PACKED() [2/2]

typedef CLIB_PACKED ( struct { u32 seq_num;union { struct { u16 ver_vlan;u16 cos_en_t_session;u32 res_index;} t2;u64 t2_u64;};}  )
ip4
vl_api_ip4_address_t ip4
Definition: one.api:376
ip6
vl_api_ip6_address_t ip6
Definition: one.api:424
nsh
typedef nsh
Definition: lisp_types.api:45