The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
conf.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CONF_MAX_LINES   500 /* Max number of option lines */
 
#define CONF_GET_VALUE(opt)   (getenv(config_str[(opt)]))
 
#define CONF_GET_INT_VALUE(opt, n)
 
#define CONF_GET_STRN_VALUE(opt, str, maxbytes)
 

Enumerations

enum  config_options {
  CONF_NTK_INT_MAP_FILE, CONF_NTK_BNODE_MAP_FILE, CONF_NTK_EXT_MAP_FILE, CONF_ANDNA_HNAMES_FILE,
  CONF_SNSD_NODES_FILE, CONF_ANDNA_CACHE_FILE, CONF_ANDNA_LCLKEY_FILE, CONF_ANDNA_LCL_FILE,
  CONF_ANDNA_RHC_FILE, CONF_ANDNA_COUNTER_C_FILE, CONF_NTK_PID_FILE, CONF_NTK_MAX_CONNECTIONS,
  CONF_NTK_MAX_ACCEPTS_PER_HOST, CONF_NTK_MAX_ACCEPTS_PER_HOST_TIME, CONF_DISABLE_ANDNA, CONF_DISABLE_RESOLVCONF,
  CONF_NTK_RESTRICTED_MODE, CONF_NTK_RESTRICTED_CLASS, CONF_NTK_INTERNET_CONNECTION, CONF_NTK_INTERNET_GW,
  CONF_NTK_INTERNET_UPLOAD, CONF_NTK_INTERNET_DOWNLOAD, CONF_NTK_INTERNET_PING_HOSTS, CONF_SHARE_INTERNET,
  CONF_SHAPE_INTERNET, CONF_USE_SHARED_INET, CONF_NTK_IP_MASQ_SCRIPT, CONF_NTK_TC_SHAPER_SCRIPT
}
 

Functions

void clear_config_env (void)
 
int load_config_file (char *file)
 

Variables

static const char config_str [][30]
 

Macro Definition Documentation

#define CONF_GET_INT_VALUE (   opt,
 
)
Value:
({ \
char *_val; \
_val=CONF_GET_VALUE((opt)); \
if(_val) \
(n)=atoi(_val); \
})
#define CONF_GET_VALUE(opt)
Definition: conf.h:24
#define CONF_GET_STRN_VALUE (   opt,
  str,
  maxbytes 
)
Value:
({ \
char *_val; \
_val=CONF_GET_VALUE((opt)); \
if(_val) \
*(str)=xstrndup(_val, (maxbytes)); \
})
#define CONF_GET_VALUE(opt)
Definition: conf.h:24
char * xstrndup(const char *str, size_t n)
Definition: xmalloc.c:106
#define CONF_GET_VALUE (   opt)    (getenv(config_str[(opt)]))
#define CONF_MAX_LINES   500 /* Max number of option lines */

Enumeration Type Documentation

Enumerator
CONF_NTK_INT_MAP_FILE 
CONF_NTK_BNODE_MAP_FILE 
CONF_NTK_EXT_MAP_FILE 
CONF_ANDNA_HNAMES_FILE 
CONF_SNSD_NODES_FILE 
CONF_ANDNA_CACHE_FILE 
CONF_ANDNA_LCLKEY_FILE 
CONF_ANDNA_LCL_FILE 
CONF_ANDNA_RHC_FILE 
CONF_ANDNA_COUNTER_C_FILE 
CONF_NTK_PID_FILE 
CONF_NTK_MAX_CONNECTIONS 
CONF_NTK_MAX_ACCEPTS_PER_HOST 
CONF_NTK_MAX_ACCEPTS_PER_HOST_TIME 
CONF_DISABLE_ANDNA 
CONF_DISABLE_RESOLVCONF 
CONF_NTK_RESTRICTED_MODE 
CONF_NTK_RESTRICTED_CLASS 
CONF_NTK_INTERNET_CONNECTION 
CONF_NTK_INTERNET_GW 
CONF_NTK_INTERNET_UPLOAD 
CONF_NTK_INTERNET_DOWNLOAD 
CONF_NTK_INTERNET_PING_HOSTS 
CONF_SHARE_INTERNET 
CONF_SHAPE_INTERNET 
CONF_USE_SHARED_INET 
CONF_NTK_IP_MASQ_SCRIPT 
CONF_NTK_TC_SHAPER_SCRIPT 

Function Documentation

void clear_config_env ( void  )

Here is the caller graph for this function:

int load_config_file ( char *  file)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const char config_str[][30]
static