Home
last modified time | relevance | path

Searched refs:ifo (Results 1 – 12 of 12) sorted by relevance

/netbsd-src/external/bsd/dhcpcd/dist/src/
H A Dif-options.c59 #define IN_CONFIG_BLOCK(ifo) ((ifo)->options & DHCPCD_FORKED) argument
60 #define SET_CONFIG_BLOCK(ifo) ((ifo)->options |= DHCPCD_FORKED) argument
61 #define CLEAR_CONFIG_BLOCK(ifo) ((ifo)->options &= ~DHCPCD_FORKED) argument
512 struct if_options *ifo, in set_option_space() argument
524 *od = ifo->nd_override; in set_option_space()
525 *odl = ifo->nd_override_len; in set_option_space()
526 *request = ifo->requestmasknd; in set_option_space()
527 *require = ifo->requiremasknd; in set_option_space()
528 *no = ifo->nomasknd; in set_option_space()
529 *reject = ifo->rejectmasknd; in set_option_space()
[all …]
H A Ddhcpcd.c467 struct if_options *ifo = ifp->options; in configure_interface1() local
474 if (ifo->options & DHCPCD_RELEASE) in configure_interface1()
475 ifo->options &= ~DHCPCD_PERSISTENT; in configure_interface1()
478 ifo->options &= ~DHCPCD_ARP; in configure_interface1()
480 ifo->options &= ~DHCPCD_IPV6RS; in configure_interface1()
481 if (!(ifo->options & (DHCPCD_INFORM | DHCPCD_WANTDHCP))) in configure_interface1()
482 ifo->options |= DHCPCD_STATIC; in configure_interface1()
485 if (ifo->metric != -1) in configure_interface1()
486 ifp->metric = (unsigned int)ifo->metric; in configure_interface1()
491 ifo->options & DHCPCD_IPV6 && in configure_interface1()
[all …]
H A Ddhcp.c563 struct if_options *ifo = ifp->options; in get_option_routes() local
573 if (!has_option_mask(ifo->nomask, DHO_CSR)) in get_option_routes()
578 if (!p && !has_option_mask(ifo->nomask, DHO_MSCSR)) { in get_option_routes()
587 if (!(ifo->options & DHCPCD_CSR_WARNED) && in get_option_routes()
592 ifo->options |= DHCPCD_CSR_WARNED; in get_option_routes()
599 if (!has_option_mask(ifo->nomask, DHO_STATICROUTE)) in get_option_routes()
641 if (!has_option_mask(ifo->nomask, DHO_ROUTER)) in get_option_routes()
732 struct if_options *ifo = ifp->options; in make_message() local
751 if (ifo->options & DHCPCD_BOOTP) in make_message()
776 if (ifo->options & DHCPCD_BROADCAST && in make_message()
[all …]
H A Ddhcp6.c226 const struct if_options *ifo = ifp->options; in dhcp6_makeuser() local
234 up = ifo->userclass; in dhcp6_makeuser()
268 const struct if_options *ifo; in dhcp6_makevendor() local
274 ifo = ifp->options; in dhcp6_makevendor()
276 if (ifo->vivco_en) { in dhcp6_makevendor()
278 for (i = 0, vivco = ifo->vivco; in dhcp6_makevendor()
279 i < ifo->vivco_len; in dhcp6_makevendor()
283 } else if (ifo->vendorclassid[0] != '\0') { in dhcp6_makevendor()
305 pen = htonl(ifo->vivco_en ? ifo->vivco_en : DHCPCD_IANA_PEN); in dhcp6_makevendor()
309 if (ifo->vivco_en) { in dhcp6_makevendor()
[all …]
H A Dscript.c231 const struct if_options *ifo; in make_env() local
291 ifo = ifp->options; in make_env()
362 ifo->options & DHCPCD_CONFIGURE ? "true" : "false") == -1) in make_env()
419 if_down = ifo->options & DHCPCD_RELEASE ? true_str : false_str; in make_env()
474 if (ifo->options & DHCPCD_DEBUG) { in make_env()
484 (const char *const *)ifo->config) == -1) in make_env()
509 (const char *const *)ifo->config) == -1) in make_env()
532 if (ifo->environ) { in make_env()
533 for (i = 0; ifo->environ[i] != NULL; i++) in make_env()
534 if (efprintf(fp, "%s", ifo->environ[i]) == -1) in make_env()
H A Dipv4.c383 struct if_options *ifo; in inet_routerhostroute() local
427 ifo = ifp->options; in inet_routerhostroute()
429 if (!(ifo->options & DHCPCD_ROUTER_HOST_ROUTE_WARNED) && in inet_routerhostroute()
434 ifo->options |= DHCPCD_ROUTER_HOST_ROUTE_WARNED; in inet_routerhostroute()
444 if (!(ifo->options & DHCPCD_ROUTER_HOST_ROUTE_WARNED) && in inet_routerhostroute()
449 ifo->options |= DHCPCD_ROUTER_HOST_ROUTE_WARNED; in inet_routerhostroute()
567 struct if_options *ifo; in delete_address() local
571 ifo = ifp->options; in delete_address()
575 ifo->options & DHCPCD_INFORM || in delete_address()
576 (ifo->options & DHCPCD_STATIC && ifo->req_addr.s_addr == 0)) in delete_address()
[all …]
H A Ddhcp-common.c50 dhcp_get_hostname(char *buf, size_t buf_len, const struct if_options *ifo) in dhcp_get_hostname() argument
53 if (ifo->hostname[0] == '\0') { in dhcp_get_hostname()
58 strlcpy(buf, ifo->hostname, buf_len); in dhcp_get_hostname()
68 if (ifo->options & DHCPCD_HOSTNAME_SHORT) { in dhcp_get_hostname()
H A Dipv6.c441 const struct if_options *ifo = ifp->options; in ipv6_makeaddr() local
456 if (ifo->options & DHCPCD_SLAACPRIVATE) { in ipv6_makeaddr()
462 } else if (!IN6_IS_ADDR_UNSPECIFIED(&ifo->token)) { in ipv6_makeaddr()
467 *addr = ifo->token; in ipv6_makeaddr()
/netbsd-src/usr.bin/rump_dhcpclient/
H A Ddhcp.c546 const struct if_options *ifo = iface->state->options; in make_message() local
575 if (ifo->options & DHCPCD_BROADCAST && in make_message()
624 if (type == DHCP_DISCOVER && ifo->options & DHCPCD_REQUEST) in make_message()
625 PUTADDR(DHO_IPADDRESS, ifo->req_addr); in make_message()
647 if (ifo->userclass[0]) { in make_message()
649 memcpy(p, ifo->userclass, ifo->userclass[0] + 1); in make_message()
650 p += ifo->userclass[0] + 1; in make_message()
653 if (ifo->vendorclassid[0]) { in make_message()
655 memcpy(p, ifo->vendorclassid, in make_message()
656 ifo->vendorclassid[0] + 1); in make_message()
[all …]
H A Dmain.c232 struct if_options *ifo; in main() local
253 ifp->state->options = ifo = xzalloc(sizeof(*ifp->state->options)); in main()
256 hlen = sizeof(ifo->hostname); in main()
257 if (rump_sys___sysctl(mib, __arraycount(mib), ifo->hostname, &hlen, in main()
259 snprintf(ifo->hostname, sizeof(ifo->hostname), in main()
261 ifo->options = DHCPCD_GATEWAY | DHCPCD_HOSTNAME; in main()
H A Dconfigure.c397 struct if_options *ifo; in delete_address() local
399 ifo = iface->state->options; in delete_address()
400 if (ifo->options & DHCPCD_INFORM || in delete_address()
401 (ifo->options & DHCPCD_STATIC && ifo->req_addr.s_addr == 0)) in delete_address()
420 struct if_options *ifo = iface->state->options; in configure() local
424 if (!(ifo->options & DHCPCD_INFORM) || in configure()
/netbsd-src/external/bsd/file/dist/magic/magdir/
H A Danimation998 !:mime video/x-ifo
999 !:ext ifo/bup
1002 !:mime video/x-ifo
1003 !:ext ifo/bup