93 u32 n_data_bytes = va_arg (*args,
u32);
97 for (i = 0; i < n_data_bytes && is_printable; i++)
107 vec_add (s, data, n_data_bytes);
118 int *result = va_arg (*args,
int *);
136 int *result = va_arg (*args,
int *);
150 int *result = va_arg (*args,
int *);
152 return (
unformat (input,
"0x%x", result) ||
unformat (input,
"%d", result));
160 int *result = va_arg (*args,
int *);
178 for (i = 0; i <
vec_len (token); i++)
179 if (token[i] >=
'a' && token[i] <=
'z')
180 token[
i] =
'A' + token[
i] -
'a';
194 u8 **chroot_filename = va_arg (*args,
u8 **);
197 if (!
unformat (input,
"%s", &filename))
201 if (strstr ((
char *) filename,
"..") ||
index ((
char *) filename,
'/'))
207 *chroot_filename =
format (0,
"/tmp/%s%c", filename, 0);
218 if (thread_index == 0)
219 return format (s,
"main");
vnet_hw_if_output_node_runtime_t * r
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
#define vec_add(V, E, N)
Add N elements to end of vector V (no header, unspecified alignment)
vlib_worker_thread_t * vlib_worker_threads
sll srl srl sll sra u16x4 i
#define vec_free(V)
Free vector's memory (no header).
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
#define hash_get_mem(h, key)