FD.io VPP  v18.07.1-19-g511ce25
Vector Packet Processing
lex.c File Reference
+ Include dependency graph for lex.c:

Go to the source code of this file.

Macros

#define LEX_DEBUG   0
 

Functions

u8format_vlib_lex_token (u8 *s, va_list *args)
 
void vlib_lex_get_token (vlib_lex_main_t *lm, vlib_lex_token_t *rv)
 
u16 vlib_lex_add_token (vlib_lex_main_t *lm, char *token_name)
 
static u16 add_keyword (vlib_lex_main_t *lm, char *keyword, char *token_name)
 
u16 vlib_lex_find_or_add_keyword (vlib_lex_main_t *lm, char *keyword, char *token_name)
 
void vlib_lex_set_action_range (u32 table_index, u8 lo, u8 hi, u16 action, u16 token, u32 next_table_index)
 
u16 vlib_lex_add_table (char *name)
 
void vlib_lex_reset (vlib_lex_main_t *lm, u8 *input_vector)
 
static clib_error_tlex_onetime_init (vlib_main_t *vm)
 

Variables

vlib_lex_main_t vlib_lex_main
 

Macro Definition Documentation

#define LEX_DEBUG   0

Definition at line 20 of file lex.c.

Function Documentation

static u16 add_keyword ( vlib_lex_main_t lm,
char *  keyword,
char *  token_name 
)
static

Definition at line 166 of file lex.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_vlib_lex_token ( u8 s,
va_list *  args 
)

Definition at line 23 of file lex.c.

+ Here is the call graph for this function:

static clib_error_t* lex_onetime_init ( vlib_main_t vm)
static

Definition at line 244 of file lex.c.

u16 vlib_lex_add_table ( char *  name)

Definition at line 207 of file lex.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u16 vlib_lex_add_token ( vlib_lex_main_t lm,
char *  token_name 
)

Definition at line 148 of file lex.c.

+ Here is the caller graph for this function:

u16 vlib_lex_find_or_add_keyword ( vlib_lex_main_t lm,
char *  keyword,
char *  token_name 
)

Definition at line 182 of file lex.c.

+ Here is the call graph for this function:

void vlib_lex_get_token ( vlib_lex_main_t lm,
vlib_lex_token_t rv 
)

Definition at line 36 of file lex.c.

+ Here is the caller graph for this function:

void vlib_lex_reset ( vlib_lex_main_t lm,
u8 input_vector 
)

Definition at line 233 of file lex.c.

+ Here is the caller graph for this function:

void vlib_lex_set_action_range ( u32  table_index,
u8  lo,
u8  hi,
u16  action,
u16  token,
u32  next_table_index 
)

Definition at line 190 of file lex.c.

+ Here is the caller graph for this function:

Variable Documentation

vlib_lex_main_t vlib_lex_main

Definition at line 18 of file lex.c.