• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/dnsmasq-2.15/src/

Lines Matching defs:config

76 static int have_config(struct dhcp_config *config, unsigned int mask)
78 return config && (config->flags & mask);
95 struct dhcp_config *config;
184 config = find_config(daemon->dhcp_conf, context, NULL, 0, mess->chaddr, NULL);
185 if (have_config(config, CONFIG_ADDR) &&
186 !have_config(config, CONFIG_DISABLE) &&
187 !lease_find_by_addr(config->addr))
192 mess->yiaddr = config->addr;
194 if (have_config(config, CONFIG_NAME))
195 hostname = config->hostname;
196 if (have_config(config, CONFIG_NETID))
198 config->netid.next = netid;
199 netid = &config->netid;
214 log_packet(NULL, &config->addr, mess->chaddr, iface_name, NULL);
233 config = find_config(daemon->dhcp_conf, context, clid, clid_len, mess->chaddr, NULL);
235 if (have_config(config, CONFIG_NAME))
236 hostname = config->hostname;
268 if (!config)
272 config = new;
277 if (have_config(config, CONFIG_NETID))
279 config->netid.next = netid;
280 netid = &config->netid;
324 if (have_config(config, CONFIG_NOCLID))
333 def_time = have_config(config, CONFIG_TIME) ? config->lease_time : context->lease_time;
393 if (have_config(config, CONFIG_ADDR) &&
394 config->addr.s_addr == option_addr(opt).s_addr)
396 syslog(LOG_WARNING, "disabling DHCP static address %s", inet_ntoa(config->addr));
397 config->flags &= ~CONFIG_ADDR ;
421 if (have_config(config, CONFIG_DISABLE))
423 else if (have_config(config, CONFIG_ADDR) &&
424 (!(ltmp = lease_find_by_addr(config->addr)) || ltmp == lease))
425 mess->yiaddr = config->addr;
457 if (have_config(config, CONFIG_DISABLE))
519 (!have_config(config, CONFIG_ADDR) || config->addr.s_addr != mess->yiaddr.s_addr))
526 else if (have_config(config, CONFIG_ADDR) && !lease_find_by_addr(config->addr))
530 else if ((addr_config = config_find_by_address(daemon->dhcp_conf, mess->yiaddr)) && addr_config != config)
572 if (have_config(config, CONFIG_DISABLE))