15 #ifndef included_nsh_packet_h 16 #define included_nsh_packet_h 96 nsh_base_header_t nsh_base;
98 nsh_md1_data_t md1_data;
99 nsh_md2_data_t md2_data;
103 #define NSH_VERSION (0<<6) 104 #define NSH_O_BIT (1<<5) 105 #define NSH_C_BIT (1<<4) 107 #define NSH_TTL_H4_MASK 0xF 108 #define NSH_TTL_L2_MASK 0xC0 109 #define NSH_LEN_MASK 0x3F 112 #define NSH_NSI_MASK 0xFF 113 #define NSH_NSP_MASK (0x00FFFFFF) 114 #define NSH_NSP_SHIFT 8
typedef CLIB_PACKED(struct { u8 ver_o_c;u8 length;u8 md_type;u8 next_protocol;u32 nsp_nsi;}) nsh_base_header_t
vl_api_fib_path_type_t type
nsh_tlv_header_t nsh_md2_data_t