FD.io VPP  v16.09
Vector Packet Processing
main.c File Reference
+ Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define UNIX_CLI_DEFAULT_PAGER_LIMIT   100000
 Default CLI pager limit is not configured in startup.conf. More...
 
#define UNIX_CLI_DEFAULT_HISTORY   50
 Default CLI history depth if not configured in startup.conf. More...
 

Functions

static clib_error_tunix_main_init (vlib_main_t *vm)
 
static void unix_signal_handler (int signum, siginfo_t *si, ucontext_t *uc)
 
static clib_error_tsetup_signal_handlers (unix_main_t *um)
 
static void unix_error_handler (void *arg, u8 *msg, int msg_len)
 
void vlib_unix_error_report (vlib_main_t *vm, clib_error_t *error)
 
static uword startup_config_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 
static clib_error_tunix_config (vlib_main_t *vm, unformat_input_t *input)
 
static clib_error_tunix_exit (vlib_main_t *vm)
 
static uword thread0 (uword arg)
 
int vlib_unix_main (int argc, char *argv[])
 

Variables

unix_main_t unix_main
 
static vlib_node_registration_t startup_config_node
 (constructor) VLIB_REGISTER_NODE (startup_config_node) More...
 
u8 ** vlib_thread_stacks
 

Macro Definition Documentation

#define UNIX_CLI_DEFAULT_HISTORY   50

Default CLI history depth if not configured in startup.conf.

Definition at line 54 of file main.c.

#define UNIX_CLI_DEFAULT_PAGER_LIMIT   100000

Default CLI pager limit is not configured in startup.conf.

Definition at line 51 of file main.c.

Function Documentation

static clib_error_t* setup_signal_handlers ( unix_main_t um)
static

Definition at line 124 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword startup_config_process ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 213 of file main.c.

+ Here is the call graph for this function:

static uword thread0 ( uword  arg)
static

Definition at line 425 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* unix_config ( vlib_main_t vm,
unformat_input_t input 
)
static

Definition at line 310 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void unix_error_handler ( void *  arg,
u8 msg,
int  msg_len 
)
static

Definition at line 164 of file main.c.

+ Here is the caller graph for this function:

static clib_error_t* unix_exit ( vlib_main_t vm)
static

Definition at line 413 of file main.c.

static clib_error_t* unix_main_init ( vlib_main_t vm)
static

Definition at line 60 of file main.c.

+ Here is the call graph for this function:

static void unix_signal_handler ( int  signum,
siginfo_t *  si,
ucontext_t *  uc 
)
static

Definition at line 70 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_unix_error_report ( vlib_main_t vm,
clib_error_t error 
)

Definition at line 187 of file main.c.

int vlib_unix_main ( int  argc,
char *  argv[] 
)

Definition at line 439 of file main.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_node_registration_t startup_config_node
static
Initial value:
= {
.name = "startup-config-process",
}
static uword startup_config_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition: main.c:213

(constructor) VLIB_REGISTER_NODE (startup_config_node)

Definition at line 302 of file main.c.

unix_main_t unix_main

Definition at line 57 of file main.c.

u8** vlib_thread_stacks

Definition at line 422 of file main.c.