23 uword event_type, *event_data = 0;
26 int enabled = 0,
i = 0;
65 .name =
"cnat-scanner-process",
94 .path =
"test cnat scanner",
96 .short_help =
"test cnat scanner",
u64 cnat_session_scan(vlib_main_t *vm, f64 start_time, int i)
Scan the session DB for expired sessions.
enum cnat_scanner_cmd_t_ cnat_scanner_cmd_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...
static uword * vlib_process_wait_for_event(vlib_main_t *vm)
static f64 vlib_time_now(vlib_main_t *vm)
#define vec_reset_length(v)
Reset vector length to zero NULL-pointer tolerant.
#define VLIB_INIT_FUNCTION(x)
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...
#define clib_error_return(e, args...)
static clib_error_t * cnat_scanner_cmd(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *c)
void cnat_client_throttle_pool_process()
void cnat_enable_disable_scanner(cnat_scanner_cmd_t event_type)
Enable/Disable session cleanup.
#define VLIB_REGISTER_NODE(x,...)
sll srl srl sll sra u16x4 i
vlib_node_registration_t cnat_scanner_process_node
(constructor) VLIB_REGISTER_NODE (cnat_scanner_process_node)
#define VLIB_CLI_COMMAND(x,...)
static uword cnat_scanner_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
static clib_error_t * cnat_scanner_init(vlib_main_t *vm)