FD.io VPP
v19.08-27-gf4dcae4
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | nsh_option_map_by_key_t |
struct | nsh_option_map_t |
struct | nsh_entry_t |
Note: rewrite and rewrite_size used to support varied nsh header. More... | |
struct | nsh_add_del_entry_args_t |
struct | nsh_map_t |
struct | nsh_add_del_map_args_t |
struct | nsh_proxy_session_by_key_t |
struct | nsh_proxy_session_t |
struct | nsh_main_t |
struct | nsh_input_trace_t |
Macros | |
#define | MAX_METADATA_LEN 62 |
#define | MAX_MD2_OPTIONS 256 |
#define | foreach_copy_nsh_base_hdr_field |
#define | foreach_nsh_node_error |
#define | foreach_nsh_node_next |
#define | VNET_SW_INTERFACE_FLAG_ADMIN_DOWN 0 |
#define | NSH_MD2_IOAM_CLASS 0x9 |
#define | NSH_MD2_IOAM_OPTION_TYPE_TRACE 0x3B |
#define | NSH_MD2_IOAM_OPTION_TYPE_PROOF_OF_TRANSIT 0x3C |
#define | NSH_MD2_IOAM_TRACE_DUMMY_LEN 0x8 |
#define | MAX_NSH_HEADER_LEN 256 |
#define | MAX_NSH_OPTION_LEN 128 |
Typedefs | |
typedef struct _nsh_main_dummy | nsh_main_dummy_t |
Enumerations | |
enum | nsh_input_error_t { NSH_NODE_N_ERROR } |
enum | nsh_node_next_t { NSH_NODE_N_NEXT } |
enum | nsh_action_type { NSH_ACTION_SWAP, NSH_ACTION_PUSH, NSH_ACTION_POP } |
enum | nsh_entity_type { NSH_INPUT_TYPE, NSH_PROXY_TYPE, NSH_CLASSIFIER_TYPE, NSH_AWARE_VNF_PROXY_TYPE } |
Functions | |
u8 * | format_nsh_input_map_trace (u8 *s, va_list *args) |
u8 * | format_nsh_header_with_length (u8 *s, va_list *args) |
int | nsh_md2_register_option (u16 class, u8 type, u8 option_size, int add_options(u8 *opt, u8 *opt_size), int options(vlib_buffer_t *b, nsh_tlv_header_t *opt), int swap_options(vlib_buffer_t *b, nsh_tlv_header_t *old_opt, nsh_tlv_header_t *new_opt), int pop_options(vlib_buffer_t *b, nsh_tlv_header_t *opt), u8 *trace(u8 *s, nsh_tlv_header_t *opt)) |
int | nsh_add_del_map (nsh_add_del_map_args_t *a, u32 *map_indexp) |
Action function to add or del an nsh map. More... | |
int | nsh_add_del_proxy_session (nsh_add_del_map_args_t *a) |
Action function to add or del an nsh-proxy-session. More... | |
nsh_option_map_t * | nsh_md2_lookup_option (u16 class, u8 type) |
int | nsh_add_del_entry (nsh_add_del_entry_args_t *a, u32 *entry_indexp) |
Action function for adding an NSH entry nsh_add_del_entry_args_t *a: host order. More... | |
u8 * | format_nsh_node_map_trace (u8 *s, va_list *args) |
u8 * | format_nsh_header (u8 *s, va_list *args) |
clib_error_t * | nsh_api_init (vlib_main_t *vm, nsh_main_t *nm) |
Variables | |
nsh_main_t | nsh_main |
vlib_node_registration_t | nsh_aware_vnf_proxy_node |
(constructor) VLIB_REGISTER_NODE (nsh_aware_vnf_proxy_node) More... | |
vlib_node_registration_t | nsh_eth_output_node |
(constructor) VLIB_REGISTER_NODE (nsh_eth_output_node) More... | |
#define foreach_copy_nsh_base_hdr_field |
#define foreach_nsh_node_error |
#define foreach_nsh_node_next |
typedef struct _nsh_main_dummy nsh_main_dummy_t |
enum nsh_action_type |
enum nsh_entity_type |
enum nsh_input_error_t |
enum nsh_node_next_t |
int nsh_add_del_entry | ( | nsh_add_del_entry_args_t * | a, |
u32 * | entry_indexp | ||
) |
Action function for adding an NSH entry nsh_add_del_entry_args_t *a: host order.
Definition at line 511 of file nsh_api.c.
int nsh_add_del_map | ( | nsh_add_del_map_args_t * | a, |
u32 * | map_indexp | ||
) |
int nsh_add_del_proxy_session | ( | nsh_add_del_map_args_t * | a | ) |
clib_error_t* nsh_api_init | ( | vlib_main_t * | vm, |
nsh_main_t * | nm | ||
) |
nsh_option_map_t* nsh_md2_lookup_option | ( | u16 | class, |
u8 | type | ||
) |
int nsh_md2_register_option | ( | u16 | class, |
u8 | type, | ||
u8 | option_size, | ||
int | add_optionsu8 *opt, u8 *opt_size, | ||
int | optionsvlib_buffer_t *b, nsh_tlv_header_t *opt, | ||
int | swap_optionsvlib_buffer_t *b, nsh_tlv_header_t *old_opt, nsh_tlv_header_t *new_opt, | ||
int | pop_optionsvlib_buffer_t *b, nsh_tlv_header_t *opt, | ||
u8 * | traceu8 *s, nsh_tlv_header_t *opt | ||
) |
vlib_node_registration_t nsh_aware_vnf_proxy_node |
(constructor) VLIB_REGISTER_NODE (nsh_aware_vnf_proxy_node)
Definition at line 959 of file nsh_node.c.
vlib_node_registration_t nsh_eth_output_node |
(constructor) VLIB_REGISTER_NODE (nsh_eth_output_node)
Definition at line 333 of file nsh_output.c.
nsh_main_t nsh_main |