40 #ifndef included_osi_h 41 #define included_osi_h 46 #define foreach_osi_protocol \ 63 _ (compressed, 0xb0) \ 69 #define _(f,n) OSI_PROTOCOL_##f = n, 94 #define foreach_osi_error \ 95 _ (NONE, "no error") \ 96 _ (UNKNOWN_PROTOCOL, "unknown osi protocol") 99 #define _(f,s) OSI_ERROR_##f, 114 u8 input_next_by_protocol[256];
132 uword max_data_bytes,
void osi_set_adjacency(vnet_rewrite_header_t *rw, uword max_data_bytes, osi_protocol_t protocol)
always_inline pg_node_t * pg_get_node(uword node_index)
always_inline vlib_node_t * vlib_get_node(vlib_main_t *vm, u32 i)
unformat_function_t unformat_osi_header
format_function_t format_osi_header_with_length
unformat_function_t unformat_pg_osi_header
always_inline osi_protocol_info_t * osi_get_protocol_info(osi_main_t *m, osi_protocol_t protocol)
format_function_t format_osi_protocol
#define foreach_osi_error
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
format_function_t * format_buffer
unformat_function_t * unformat_buffer
unformat_function_t * unformat_edit
always_inline void osi_setup_node(vlib_main_t *vm, u32 node_index)
format_function_t format_osi_header
uword * protocol_info_by_protocol