Lines Matching defs:config
29 * How to add a config option :
33 * 2. add a field to 'struct config' in 'config.h'
39 * option should be configurable by the config file.
44 struct config config;
45 struct config config_defaults = {
71 &config.name_server,
81 &config.ppp_detect ,
91 &config.purge_time,
100 &config.deny_file,
109 &config.cache_file,
118 &config.hosts_file,
128 &config.dhcp_lease_file,
138 &config.ppp_device_file,
148 &config.debug_file,
173 fp = fopen (config.config_file, "r");
174 if (!fp) { /* there is no config file.... use defaults */
175 perror("no config file");
179 strcpy(config.config_file, conf_file);
210 fprintf( stderr, "Unkown config option: \"%s\"\n", cmd );
248 * Take a config value, convert it to human readable form
256 * @param value - pointer to the config value.
305 config.daemon_mode = 1;
306 config.dhcp_lease_file[0] = 0;
307 config.debug_file[0] = 0;