|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
56 s =
format (s,
"0x%02x", p);
66 u32 max_header_bytes = va_arg (*args,
u32);
68 u32 indent, header_bytes;
70 header_bytes =
sizeof (
h[0]);
71 if (max_header_bytes != 0 && header_bytes > max_header_bytes)
72 return format (s,
"osi header truncated");
78 if (max_header_bytes != 0 && header_bytes > max_header_bytes)
82 if (
node->format_buffer)
85 node->format_buffer, (
void *) (
h + 1),
86 max_header_bytes - header_bytes);
103 u8 *result = va_arg (*args,
u8 *);
131 u8 **result = va_arg (*args,
u8 **);
161 pi->
name = protocol_name;
185 #define _(f,n) add_protocol (pm, OSI_PROTOCOL_##f, #f);
#define clib_memcpy(d, s, n)
uword * protocol_info_by_name
uword * protocol_info_by_protocol
vlib_main_t vlib_node_runtime_t * node
static osi_protocol_info_t * osi_get_protocol_info(osi_main_t *m, osi_protocol_t protocol)
#define vlib_call_init_function(vm, x)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
#define hash_create_string(elts, value_bytes)
#define hash_create(elts, value_bytes)
#define hash_set(h, key, value)
uword unformat_osi_header(unformat_input_t *input, va_list *args)
#define vec_add2(V, P, N)
Add N elements to end of vector V, return pointer to new elements in P.
#define vec_elt_at_index(v, i)
Get vector value at index i checking that i is in bounds.
osi_protocol_info_t * protocol_infos
u8 * format_osi_header_with_length(u8 *s, va_list *args)
#define hash_set_mem(h, key, value)
static vlib_node_t * vlib_get_node(vlib_main_t *vm, u32 i)
Get vlib node by index.
sll srl srl sll sra u16x4 i
uword unformat_osi_protocol(unformat_input_t *input, va_list *args)
description fragment has unexpected format
static clib_error_t * llc_init(vlib_main_t *vm)
#define VLIB_INIT_FUNCTION(x)
vl_api_ip_proto_t protocol
static clib_error_t * osi_init(vlib_main_t *vm)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
static clib_error_t * osi_input_init(vlib_main_t *vm)
u8 * format_osi_header(u8 *s, va_list *args)
static void add_protocol(osi_main_t *pm, osi_protocol_t protocol, char *protocol_name)
u8 * format_osi_protocol(u8 *s, va_list *args)