|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
19 #include <vpp/app/version.h>
28 s =
format (s,
"{\"vpp_details\": {");
29 s =
format (s,
" \"version\": \"%s\",", VPP_BUILD_VER);
30 s =
format (s,
" \"build_date\": \"%s\"}}\r\n", VPP_BUILD_DATE);
43 int trim_length = strlen (
path) + 1 ;
59 _vec_len (s) = cp - s;
92 s =
format (s,
"{\"interface_stats\": {[\n");
94 s =
format (s,
" \"error\": \"%s\"",
"UnknownInterface");
111 s =
format (s,
"{%sinterface_stats%s: [\n", q, q);
121 s =
format (s,
"{%sname%s: %s%U%s, ", q, q, q,
129 s =
format (s,
"%snone%s: %strue%s}", q, q, q, q);
154 u32 *hw_if_indices = 0;
168 s =
format (s,
"{\"interface_list\": [\n");
#define vec_reset_length(v)
Reset vector length to zero NULL-pointer tolerant.
vnet_interface_main_t * im
@ HTTP_BUILTIN_METHOD_GET
int handle_get_version(http_builtin_method_type_t reqtype, u8 *request, http_session_t *hs)
u32 data_offset
Current data send offset.
http_builtin_method_type_t
@ HTTP_BUILTIN_METHOD_POST
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
void builtinurl_handler_init(builtinurl_main_t *bm)
#define vec_delete(V, N, M)
Delete N elements starting at element M.
static vnet_sw_interface_t * vnet_get_sw_interface(vnet_main_t *vnm, u32 sw_if_index)
vl_api_ikev2_sa_stats_t stats
vnet_hw_interface_t * hw_interfaces
int handle_get_interface_list(http_builtin_method_type_t reqtype, u8 *request, http_session_t *hs)
#define pool_foreach(VAR, POOL)
Iterate through pool.
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
vnet_main_t * vnet_get_main(void)
int free_data
Need to free data in detach_cache_entry.
void(* register_handler)(void *, char *, int)
u8 * data
File data, a vector.
u32 cache_pool_index
File cache pool index.
void trim_path_from_request(u8 *s, char *path)
#define vec_free(V)
Free vector's memory (no header).
format_function_t format_vnet_sw_if_index_name
description fragment has unexpected format
uword * hw_interface_by_name
u32 sw_if_indices[VLIB_FRAME_SIZE]
int handle_get_interface_stats(http_builtin_method_type_t reqtype, u8 *request, http_session_t *hs)
vnet_interface_main_t interface_main