Go to the source code of this file.
|
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
} |
|
#define CONF_GET_INT_VALUE |
( |
|
opt, |
|
|
|
n |
|
) |
| |
Value:({ \
char *_val; \
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; \
if(_val) \
})
#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 */ |
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 |
|
void clear_config_env |
( |
void |
| ) |
|
int load_config_file |
( |
char * |
file | ) |
|
const char config_str[][30] |
|
static |