66 for (i = 0; i < nnodes; i++)
112 for (i = 0; i <
vec_len(nodes); i++)
125 for (i = 0; i <
vec_len(nodes); i++)
137 .path =
"test node serialize",
138 .short_help =
"test node serialize",
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment) ...
sll srl srl sll sra u16x4 i
always_inline void serialize_likely_small_unsigned_integer(serialize_main_t *m, u64 x)
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
#define vec_reset_length(v)
Reset vector length to zero NULL-pointer tolerant.
u8 * vlib_node_serialize(vlib_node_main_t *nm, u8 *vector)
#define vec_dup(V)
Return copy of vector (no header, no alignment)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
void unserialize_cstring(serialize_main_t *m, char **s)
void serialize_open_vector(serialize_main_t *m, u8 *vector)
#define vec_free(V)
Free vector's memory (no header).
static clib_error_t * test_node_serialize_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define VLIB_CLI_COMMAND(x,...)
void serialize_cstring(serialize_main_t *m, char *s)
vlib_node_t ** vlib_node_unserialize(u8 *vector)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
vlib_node_main_t node_main
void * serialize_close_vector(serialize_main_t *m)
always_inline u64 unserialize_likely_small_unsigned_integer(serialize_main_t *m)