netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
parser.h File Reference
#include <list.h>
#include <rule.h>
Include dependency graph for parser.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  parser_state
 

Macros

#define MAX_INCLUDE_DEPTH   16
 
#define TABSIZE   8
 
#define YYLTYPE   struct location
 
#define YYLTYPE_IS_TRIVIAL   0
 
#define YYENABLE_NLS   0
 
#define SCOPE_NEST_MAX   3
 

Functions

void parser_init (struct parser_state *state, struct list_head *msgs)
 
int nft_parse (void *, struct parser_state *state)
 
void * scanner_init (struct parser_state *state)
 
void scanner_destroy (struct parser_state *state)
 
int scanner_read_file (void *scanner, const char *filename, const struct location *loc)
 
int scanner_include_file (void *scanner, const char *filename, const struct location *loc)
 
void scanner_push_buffer (void *scanner, const struct input_descriptor *indesc, const char *buffer)
 

Macro Definition Documentation

#define MAX_INCLUDE_DEPTH   16
#define SCOPE_NEST_MAX   3
#define TABSIZE   8
#define YYENABLE_NLS   0
#define YYLTYPE   struct location
#define YYLTYPE_IS_TRIVIAL   0

Function Documentation

int nft_parse ( void *  ,
struct parser_state state 
)

Referenced by nft_run().

Here is the caller graph for this function:

void parser_init ( struct parser_state state,
struct list_head msgs 
)

Referenced by main().

Here is the caller graph for this function:

void scanner_destroy ( struct parser_state state)

Referenced by main().

Here is the caller graph for this function:

int scanner_include_file ( void *  scanner,
const char *  filename,
const struct location loc 
)
void* scanner_init ( struct parser_state state)

Referenced by cli_init(), and main().

Here is the caller graph for this function:

void scanner_push_buffer ( void *  scanner,
const struct input_descriptor indesc,
const char *  buffer 
)

Referenced by main().

Here is the caller graph for this function:

int scanner_read_file ( void *  scanner,
const char *  filename,
const struct location loc 
)

Referenced by main().

Here is the caller graph for this function: