Lines Matching refs:ifo

159 	const struct if_options *ifo;  in dhcp6_makevendor()  local
168 ifo = ifp->options; in dhcp6_makevendor()
170 if (ifo->vivco_en) { in dhcp6_makevendor()
171 for (i = 0, vivco = ifo->vivco; in dhcp6_makevendor()
172 i < ifo->vivco_len; in dhcp6_makevendor()
194 u32 = htonl(ifo->vivco_en ? ifo->vivco_en : DHCPCD_IANA_PEN); in dhcp6_makevendor()
197 if (ifo->vivco_en) { in dhcp6_makevendor()
198 for (i = 0, vivco = ifo->vivco; in dhcp6_makevendor()
199 i < ifo->vivco_len; in dhcp6_makevendor()
517 struct if_options *ifo; in dhcp6_makemessage() local
535 ifo = ifp->options; in dhcp6_makemessage()
536 fqdn = ifo->fqdn; in dhcp6_makemessage()
538 if (fqdn == FQDN_DISABLE && ifo->options & DHCPCD_HOSTNAME) { in dhcp6_makemessage()
545 if (ifo->hostname[0] == '\0') in dhcp6_makemessage()
547 ifo->options & DHCPCD_HOSTNAME_SHORT ? 1 : 0); in dhcp6_makemessage()
549 hostname = ifo->hostname; in dhcp6_makemessage()
562 for (n = 0, opt2 = ifo->dhcp6_override; in dhcp6_makemessage()
563 n < ifo->dhcp6_override_len; in dhcp6_makemessage()
569 if (n < ifo->dhcp6_override_len) in dhcp6_makemessage()
573 has_option_mask(ifo->requestmask6, opt->option))) in dhcp6_makemessage()
579 for (l = 0, opt = ifo->dhcp6_override; in dhcp6_makemessage()
580 l < ifo->dhcp6_override_len; in dhcp6_makemessage()
585 has_option_mask(ifo->requestmask6, opt->option))) in dhcp6_makemessage()
601 if ((ifo->auth.options & DHCPCD_AUTH_SENDREQUIRE) != in dhcp6_makemessage()
647 if (!(ifo->options & DHCPCD_NOPFXDLG)) { in dhcp6_makemessage()
658 } else if (!(ifo->options & DHCPCD_PFXDLGONLY)) in dhcp6_makemessage()
664 for (l = 0; l < ifo->ia_len; l++) { in dhcp6_makemessage()
665 if (ifo->ia[l].ia_type == D6_OPTION_IA_PD) { in dhcp6_makemessage()
666 if (ifo->options & DHCPCD_NOPFXDLG) in dhcp6_makemessage()
668 } else if (ifo->options & DHCPCD_PFXDLGONLY) in dhcp6_makemessage()
680 has_option_mask(ifo->requestmask6, D6_OPTION_RAPID_COMMIT)) in dhcp6_makemessage()
722 if (ifo->auth.options & DHCPCD_AUTH_SEND) { in dhcp6_makemessage()
723 ssize_t alen = dhcp_auth_encode(&ifo->auth, in dhcp6_makemessage()
775 has_option_mask(ifo->requestmask6, D6_OPTION_RAPID_COMMIT)) in dhcp6_makemessage()
782 for (l = 0; IA && l < ifo->ia_len; l++) { in dhcp6_makemessage()
783 if (ifo->ia[l].ia_type == D6_OPTION_IA_PD) { in dhcp6_makemessage()
784 if (ifo->options & DHCPCD_NOPFXDLG) in dhcp6_makemessage()
786 } else if (ifo->options & DHCPCD_PFXDLGONLY) in dhcp6_makemessage()
789 o->code = htons(ifo->ia[l].ia_type); in dhcp6_makemessage()
792 memcpy(p, ifo->ia[l].iaid, sizeof(u32)); in dhcp6_makemessage()
799 if (memcmp(ifo->ia[l].iaid, ap->iaid, sizeof(u32))) in dhcp6_makemessage()
880 if ((ifo->auth.options & DHCPCD_AUTH_SENDREQUIRE) != in dhcp6_makemessage()
897 for (n = 0, opt2 = ifo->dhcp6_override; in dhcp6_makemessage()
898 n < ifo->dhcp6_override_len; in dhcp6_makemessage()
904 if (n < ifo->dhcp6_override_len) in dhcp6_makemessage()
908 has_option_mask(ifo->requestmask6, in dhcp6_makemessage()
917 for (l = 0, opt = ifo->dhcp6_override; in dhcp6_makemessage()
918 l < ifo->dhcp6_override_len; in dhcp6_makemessage()
923 has_option_mask(ifo->requestmask6, in dhcp6_makemessage()
942 if (ifo->auth.options & DHCPCD_AUTH_SEND && auth_len != 0) { in dhcp6_makemessage()
1949 const struct if_options *ifo; in dhcp6_findia() local
1967 ifo = ifp->options; in dhcp6_findia()
2008 for (j = 0; j < ifo->ia_len; j++) { in dhcp6_findia()
2009 if (memcmp(&ifo->ia[j].iaid, iaid, sizeof(iaid)) == 0) in dhcp6_findia()
2012 if (j == ifo->ia_len && in dhcp6_findia()
2013 !(ifo->ia_len == 0 && ifp->ctx->options & DHCPCD_DUMPLEASE)) in dhcp6_findia()
2021 if ( j < ifo->ia_len && ifo->ia[j].ia_type != code) { in dhcp6_findia()
2045 if (!(ifo->options & DHCPCD_NOPFXDLG) && in dhcp6_findia()
2053 } else if (!(ifo->options & DHCPCD_PFXDLGONLY)) { in dhcp6_findia()
2410 struct if_options *ifo; in dhcp6_delegate_prefix() local
2419 ifo = ifp->options; in dhcp6_delegate_prefix()
2423 for (i = 0; i < ifo->ia_len; i++) { in dhcp6_delegate_prefix()
2424 ia = &ifo->ia[i]; in dhcp6_delegate_prefix()
2459 for (i = 0; i < ifo->ia_len; i++) { in dhcp6_delegate_prefix()
2460 ia = &ifo->ia[i]; in dhcp6_delegate_prefix()
2523 struct if_options *ifo; in dhcp6_find_delegates() local
2533 ifo = ifd->options; in dhcp6_find_delegates()
2540 for (i = 0; i < ifo->ia_len; i++) { in dhcp6_find_delegates()
2541 ia = &ifo->ia[i]; in dhcp6_find_delegates()
2614 const struct if_options *ifo; in dhcp6_handledata() local
2733 ifo = ifp->options; in dhcp6_handledata()
2738 if (has_option_mask(ifo->requiremask6, opt->option) && in dhcp6_handledata()
2746 if (has_option_mask(ifo->rejectmask6, opt->option) && in dhcp6_handledata()
2759 if (dhcp_auth_validate(&state->auth, &ifo->auth, in dhcp6_handledata()
2776 } else if (ifo->auth.options & DHCPCD_AUTH_REQUIRE) { in dhcp6_handledata()
2780 } else if (ifo->auth.options & DHCPCD_AUTH_SEND) in dhcp6_handledata()
2819 if (has_option_mask(ifo->requestmask6, in dhcp6_handledata()
3164 struct if_options *ifo = ifp->options; in dhcp6_start1() local
3172 for (i = 0; i < sizeof(ifo->requestmask6); i++) { in dhcp6_start1()
3173 if (ifo->requestmask6[i] != '\0') in dhcp6_start1()
3176 if (i == sizeof(ifo->requestmask6)) { in dhcp6_start1()
3178 if (has_option_mask(ifo->requestmask, dhc->dhcp_opt)) in dhcp6_start1()
3179 add_option_mask(ifo->requestmask6, in dhcp6_start1()
3182 if (ifo->fqdn != FQDN_DISABLE || in dhcp6_start1()
3183 ifo->options & DHCPCD_HOSTNAME) in dhcp6_start1()
3184 add_option_mask(ifo->requestmask6, D6_OPTION_FQDN); in dhcp6_start1()
3189 del_option_mask(ifo->requestmask6, D6_OPTION_RAPID_COMMIT); in dhcp6_start1()
3192 if (!(ifo->options & (DHCPCD_PFXDLGONLY | DHCPCD_PFXDLGMIX)) && in dhcp6_start1()
3237 add_option_mask(ifo->requestmask6, D6_OPTION_INFO_REFRESH_TIME); in dhcp6_start1()
3240 del_option_mask(ifo->requestmask6, D6_OPTION_INFO_REFRESH_TIME); in dhcp6_start1()
3459 const struct if_options *ifo; in dhcp6_env() local
3482 ifo = ifp->options; in dhcp6_env()
3522 if (has_option_mask(ifo->nomask6, oc)) in dhcp6_env()
3524 for (i = 0, opt = ifo->dhcp6_override; in dhcp6_env()
3525 i < ifo->dhcp6_override_len; in dhcp6_env()
3529 if (i == ifo->dhcp6_override_len && in dhcp6_env()
3538 if (i == ifo->dhcp6_override_len) { in dhcp6_env()