FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
nsh_packet.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NSH_VERSION   (0<<6)
 
#define NSH_O_BIT   (1<<5)
 
#define NSH_C_BIT   (1<<4)
 
#define NSH_TTL_H4_MASK   0xF
 
#define NSH_TTL_L2_MASK   0xC0
 
#define NSH_LEN_MASK   0x3F
 
#define NSH_NSI_MASK   0xFF
 
#define NSH_NSP_MASK   (0x00FFFFFF)
 
#define NSH_NSP_SHIFT   8
 

Typedefs

typedef nsh_tlv_header_t nsh_md2_data_t
 

Functions

typedef CLIB_PACKED (struct { u8 ver_o_c;u8 length;u8 md_type;u8 next_protocol;u32 nsp_nsi;}) nsh_base_header_t
 
typedef CLIB_PACKED (struct { u32 c1;u32 c2;u32 c3;u32 c4;}) nsh_md1_data_t
 
typedef CLIB_PACKED (struct { u16 class;u8 type;u8 length;}) nsh_tlv_header_t
 
typedef CLIB_PACKED (struct { nsh_base_header_t nsh_base;union { nsh_md1_data_t md1_data;nsh_md2_data_t md2_data;} md;}) nsh_header_t
 

Macro Definition Documentation

◆ NSH_C_BIT

#define NSH_C_BIT   (1<<4)

Definition at line 105 of file nsh_packet.h.

◆ NSH_LEN_MASK

#define NSH_LEN_MASK   0x3F

Definition at line 109 of file nsh_packet.h.

◆ NSH_NSI_MASK

#define NSH_NSI_MASK   0xFF

Definition at line 112 of file nsh_packet.h.

◆ NSH_NSP_MASK

#define NSH_NSP_MASK   (0x00FFFFFF)

Definition at line 113 of file nsh_packet.h.

◆ NSH_NSP_SHIFT

#define NSH_NSP_SHIFT   8

Definition at line 114 of file nsh_packet.h.

◆ NSH_O_BIT

#define NSH_O_BIT   (1<<5)

Definition at line 104 of file nsh_packet.h.

◆ NSH_TTL_H4_MASK

#define NSH_TTL_H4_MASK   0xF

Definition at line 107 of file nsh_packet.h.

◆ NSH_TTL_L2_MASK

#define NSH_TTL_L2_MASK   0xC0

Definition at line 108 of file nsh_packet.h.

◆ NSH_VERSION

#define NSH_VERSION   (0<<6)

Definition at line 103 of file nsh_packet.h.

Typedef Documentation

◆ nsh_md2_data_t

typedef nsh_tlv_header_t nsh_md2_data_t

Definition at line 93 of file nsh_packet.h.

Function Documentation

◆ CLIB_PACKED() [1/4]

typedef CLIB_PACKED ( struct { u8 ver_o_c;u8 length;u8 md_type;u8 next_protocol;u32 nsp_nsi;}  )

◆ CLIB_PACKED() [2/4]

typedef CLIB_PACKED ( struct { u32 c1;u32 c2;u32 c3;u32 c4;}  )

◆ CLIB_PACKED() [3/4]

typedef CLIB_PACKED ( struct { u16 class;u8 type;u8 length;}  )

◆ CLIB_PACKED() [4/4]

typedef CLIB_PACKED ( struct { nsh_base_header_t nsh_base;union { nsh_md1_data_t md1_data;nsh_md2_data_t md2_data;} md;}  )