40 #ifndef included_osi_h 41 #define included_osi_h 46 #define foreach_osi_protocol \ 63 _ (compressed, 0xb0) \ 70 #define _(f,n) OSI_PROTOCOL_##f = n, 97 #define foreach_osi_error \ 98 _ (NONE, "no error") \ 99 _ (UNKNOWN_PROTOCOL, "unknown osi protocol") 103 #define _(f,s) OSI_ERROR_##f, 119 u8 input_next_by_protocol[256];
void osi_set_adjacency(vnet_rewrite_header_t *rw, uword max_data_bytes, osi_protocol_t protocol)
unformat_function_t unformat_osi_header
format_function_t format_osi_header_with_length
unformat_function_t unformat_pg_osi_header
format_function_t format_osi_protocol
#define foreach_osi_error
static pg_node_t * pg_get_node(uword node_index)
void osi_register_input_protocol(osi_protocol_t protocol, u32 node_index)
#define foreach_osi_protocol
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
unformat_function_t unformat_osi_protocol
osi_protocol_info_t * protocol_infos
static osi_protocol_info_t * osi_get_protocol_info(osi_main_t *m, osi_protocol_t protocol)
static void osi_setup_node(vlib_main_t *vm, u32 node_index)
format_function_t * format_buffer
unformat_function_t * unformat_buffer
unformat_function_t * unformat_edit
static vlib_node_t * vlib_get_node(vlib_main_t *vm, u32 i)
Get vlib node by index.
format_function_t format_osi_header
uword * protocol_info_by_protocol