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

Data Structures

struct  config_entry
 
struct  config_keyset
 

Macros

#define LINE_LEN   255
 
#define CONFIG_KEY_LEN   30
 
#define CONFIG_VAL_STRING_LEN   225
 
#define CONFIG_TYPE_INT   0x0001
 
#define CONFIG_TYPE_STRING   0x0002
 
#define CONFIG_TYPE_CALLBACK   0x0003
 
#define CONFIG_OPT_NONE   0x0000
 
#define CONFIG_OPT_MANDATORY   0x0001
 
#define CONFIG_OPT_MULTI   0x0002
 
#define CONFIG_FLAG_VAL_PROTECTED   (1<<0)
 

Enumerations

enum  {
  ERRNONE = 0,
  ERROPEN,
  ERROOM,
  ERRMULT,
  ERRMAND,
  ERRUNKN,
  ERRSECTION,
  ERRTOOLONG
}
 

Functions

int config_register_file (const char *file)
 
int config_parse_file (const char *section, struct config_keyset *kset)
 
void config_stop ()
 

Variables

struct config_entryconfig_errce
 

Macro Definition Documentation

#define CONFIG_FLAG_VAL_PROTECTED   (1<<0)

Referenced by config_parse_file(), and main().

#define CONFIG_KEY_LEN   30
#define CONFIG_OPT_MANDATORY   0x0001
#define CONFIG_OPT_MULTI   0x0002
#define CONFIG_OPT_NONE   0x0000
#define CONFIG_TYPE_CALLBACK   0x0003
#define CONFIG_TYPE_INT   0x0001
#define CONFIG_TYPE_STRING   0x0002
#define CONFIG_VAL_STRING_LEN   225
#define LINE_LEN   255

Enumeration Type Documentation

anonymous enum
Enumerator
ERRNONE 
ERROPEN 
ERROOM 
ERRMULT 
ERRMAND 
ERRUNKN 
ERRSECTION 
ERRTOOLONG 

Function Documentation

int config_register_file ( const char *  file)

References ERROOM, pr_debug, ULOGD_ERROR, and ulogd_log.

Referenced by main().

Here is the caller graph for this function:

void config_stop ( )

Variable Documentation

struct config_entry* config_errce