Searched refs:ifo (Results 1 – 5 of 5) sorted by relevance
/external/dhcpcd/ |
D | if-options.c | 132 add_environ(struct if_options *ifo, const char *value, int uniq) in add_environ() argument 135 char **lst = ifo->environ; in add_environ() 168 ifo->environ = newlist; in add_environ() 331 parse_option(struct if_options *ifo, int opt, const char *arg) in parse_option() argument 349 ifo->options |= DHCPCD_BACKGROUND; in parse_option() 352 strlcpy(ifo->script, arg, sizeof(ifo->script)); in parse_option() 355 ifo->options |= DHCPCD_DEBUG; in parse_option() 358 add_environ(ifo, arg, 1); in parse_option() 362 s = parse_string(ifo->hostname, in parse_option() 368 if (s != 0 && ifo->hostname[0] == '.') { in parse_option() [all …]
|
D | dhcpcd.c | 310 struct if_options *ifo = state->options; in send_message() local 345 (!(ifo->options & DHCPCD_INFORM) && is_bootp(iface->state->new))) in send_message() 480 blacklisted_ip(const struct if_options *ifo, in_addr_t addr) in blacklisted_ip() argument 484 for (i = 0; i < ifo->blacklist_len; i += 2) in blacklisted_ip() 485 if (ifo->blacklist[i] == (addr & ifo->blacklist[i + 1])) in blacklisted_ip() 491 whitelisted_ip(const struct if_options *ifo, in_addr_t addr) in whitelisted_ip() argument 495 if (ifo->whitelist_len == 0) in whitelisted_ip() 497 for (i = 0; i < ifo->whitelist_len; i += 2) in whitelisted_ip() 498 if (ifo->whitelist[i] == (addr & ifo->whitelist[i + 1])) in whitelisted_ip() 507 struct if_options *ifo = state->options; in handle_dhcp() local [all …]
|
D | bind.c | 125 struct if_options *ifo = state->options; in bind_interface() local 141 if (ifo->options & DHCPCD_STATIC) { in bind_interface() 145 lease->net.s_addr = ifo->req_mask.s_addr; in bind_interface() 152 } else if (ifo->options & DHCPCD_INFORM) { in bind_interface() 153 if (ifo->req_addr.s_addr != 0) in bind_interface() 154 lease->addr.s_addr = ifo->req_addr.s_addr; in bind_interface() 226 ifo->options &= ~ DHCPCD_CSR_WARNED; in bind_interface() 230 if (ifo->options & DHCPCD_ARP) { in bind_interface()
|
D | dhcp.c | 919 const struct if_options *ifo = iface->state->options; in make_message() local 948 if (ifo->options & DHCPCD_BROADCAST && in make_message() 997 if (type == DHCP_DISCOVER && ifo->options & DHCPCD_REQUEST) in make_message() 998 PUTADDR(DHO_IPADDRESS, ifo->req_addr); in make_message() 1020 if (ifo->userclass[0]) { in make_message() 1022 memcpy(p, ifo->userclass, ifo->userclass[0] + 1); in make_message() 1023 p += ifo->userclass[0] + 1; in make_message() 1026 if (ifo->vendorclassid[0]) { in make_message() 1028 memcpy(p, ifo->vendorclassid, in make_message() 1029 ifo->vendorclassid[0] + 1); in make_message() [all …]
|
D | configure.c | 170 const struct if_options *ifo = iface->state->options; in make_env() local 254 e = configure_env(NULL, NULL, iface->state->old, ifo); in make_env() 258 iface->state->old, ifo); in make_env() 261 (const char *const *)ifo->config); in make_env() 266 e = configure_env(NULL, NULL, iface->state->new, ifo); in make_env() 270 iface->state->new, ifo); in make_env() 273 (const char *const *)ifo->config); in make_env() 284 if (ifo->environ) { in make_env() 286 while (ifo->environ[e++]) in make_env() 290 while (ifo->environ[e]) { in make_env() [all …]
|