FD.io VPP  v19.01.2-3-gf61a1a8
Vector Packet Processing
mapfile_tool.c File Reference
+ Include dependency graph for mapfile_tool.c:

Go to the source code of this file.

Data Structures

struct  mapfile_tool_main_t
 

Functions

static void print_chunk (mapfile_tool_main_t *mtm, char *chunk)
 
static int parse_mapfile (mapfile_tool_main_t *mtm)
 
static int mapfile_main (unformat_input_t *input, mapfile_tool_main_t *mtm)
 
int main (int argc, char *argv[])
 

Variables

mapfile_tool_main_t mapfile_tool_main
 
static char * top_boilerplate
 
static char * bottom_boilerplate = "};\n"
 

Function Documentation

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

Definition at line 220 of file mapfile_tool.c.

+ Here is the call graph for this function:

static int mapfile_main ( unformat_input_t input,
mapfile_tool_main_t mtm 
)
static

Definition at line 160 of file mapfile_tool.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int parse_mapfile ( mapfile_tool_main_t mtm)
static

Definition at line 52 of file mapfile_tool.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void print_chunk ( mapfile_tool_main_t mtm,
char *  chunk 
)
static

Definition at line 46 of file mapfile_tool.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char* bottom_boilerplate = "};\n"
static

Definition at line 43 of file mapfile_tool.c.

mapfile_tool_main_t mapfile_tool_main

Definition at line 31 of file mapfile_tool.c.

char* top_boilerplate
static
Initial value:
=
"typedef struct {\n"
" u8 model;\n"
" u8 stepping;\n"
" u8 has_stepping;\n"
" char *filename;\n"
"} file_by_model_and_stepping_t;\n\n"
"static const file_by_model_and_stepping_t fms_table [] =\n"
"{\n" " /* model, stepping, stepping valid, file */\n"

Definition at line 33 of file mapfile_tool.c.