|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
23 uword event_type, *event_data = 0;
26 int enabled = 0,
i = 0;
64 .name =
"cnat-scanner-process",
91 .path =
"test cnat scanner",
93 .short_help =
"test cnat scanner",
#define vec_reset_length(v)
Reset vector length to zero NULL-pointer tolerant.
u64 cnat_session_scan(vlib_main_t *vm, f64 start_time, int i)
Scan the session DB for expired sessions.
void cnat_client_throttle_pool_process()
static uword * vlib_process_wait_for_event(vlib_main_t *vm)
#define clib_error_return(e, args...)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static clib_error_t * cnat_scanner_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *c)
static uword vlib_process_get_events(vlib_main_t *vm, uword **data_vector)
Return the first event type which has occurred and a vector of per-event data of that type,...
vlib_node_registration_t cnat_scanner_process_node
(constructor) VLIB_REGISTER_NODE (cnat_scanner_process_node)
sll srl srl sll sra u16x4 i
static vlib_cli_command_t cnat_scanner_cmd_node
(constructor) VLIB_CLI_COMMAND (cnat_scanner_cmd_node)
vnet_feature_config_main_t * cm
#define VLIB_CLI_COMMAND(x,...)
struct _vlib_node_registration vlib_node_registration_t
static f64 vlib_process_wait_for_event_or_clock(vlib_main_t *vm, f64 dt)
Suspend a cooperative multi-tasking thread Waits for an event, or for the indicated number of seconds...
#define VLIB_INIT_FUNCTION(x)
enum cnat_scanner_cmd_t_ cnat_scanner_cmd_t
void cnat_enable_disable_scanner(cnat_scanner_cmd_t event_type)
Enable/Disable session cleanup.
vnet_interface_output_runtime_t * rt
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
static f64 vlib_time_now(vlib_main_t *vm)
static clib_error_t * cnat_scanner_init(vlib_main_t *vm)
static uword cnat_scanner_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
#define VLIB_REGISTER_NODE(x,...)