FD.io VPP  v21.06-3-gbb25fbf28
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

◆ LEX_DEBUG

#define LEX_DEBUG   0

Definition at line 20 of file lex.c.

Function Documentation

◆ add_keyword()

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:

◆ format_vlib_lex_token()

u8* format_vlib_lex_token ( u8 s,
va_list *  args 
)

Definition at line 23 of file lex.c.

◆ lex_onetime_init()

static clib_error_t* lex_onetime_init ( vlib_main_t vm)
static

Definition at line 244 of file lex.c.

◆ vlib_lex_add_table()

u16 vlib_lex_add_table ( char *  name)

Definition at line 207 of file lex.c.

+ Here is the call graph for this function:

◆ vlib_lex_add_token()

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:

◆ vlib_lex_find_or_add_keyword()

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:

◆ vlib_lex_get_token()

void vlib_lex_get_token ( vlib_lex_main_t lm,
vlib_lex_token_t rv 
)

Definition at line 36 of file lex.c.

◆ vlib_lex_reset()

void vlib_lex_reset ( vlib_lex_main_t lm,
u8 input_vector 
)

Definition at line 233 of file lex.c.

◆ vlib_lex_set_action_range()

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

vlib_lex_main_t vlib_lex_main

Definition at line 18 of file lex.c.