Lines Matching refs:prefix_len
127 uint8_t prefix_len; member
417 asla.prefix_len = 0; in dhcp6_delegateaddr()
419 } else if (sla->prefix_len == 0) { in dhcp6_delegateaddr()
422 asla.prefix_len = prefix->prefix_len; in dhcp6_delegateaddr()
424 asla.prefix_len = 0; in dhcp6_delegateaddr()
427 if (sla->prefix_len == 0) { in dhcp6_delegateaddr()
444 if (prefix->prefix_len + bits > UINT8_MAX) in dhcp6_delegateaddr()
445 asla.prefix_len = UINT8_MAX; in dhcp6_delegateaddr()
447 asla.prefix_len = (uint8_t)(prefix->prefix_len + bits); in dhcp6_delegateaddr()
451 if (asla.prefix_len <= 64) in dhcp6_delegateaddr()
452 asla.prefix_len = 64; in dhcp6_delegateaddr()
454 asla.prefix_len = (uint8_t)ROUNDUP8(asla.prefix_len); in dhcp6_delegateaddr()
462 ia->sla_max = (uint32_t)BIT_MASK(asla.prefix_len - in dhcp6_delegateaddr()
463 prefix->prefix_len); in dhcp6_delegateaddr()
466 if (ipv6_userprefix(&prefix->prefix, prefix->prefix_len, in dhcp6_delegateaddr()
467 sla->sla, addr, sla->prefix_len) == -1) in dhcp6_delegateaddr()
473 ifp->name, sa, prefix->prefix_len, in dhcp6_delegateaddr()
474 sla->sla, sla->prefix_len); in dhcp6_delegateaddr()
489 return sla->prefix_len; in dhcp6_delegateaddr()
654 ap->prefix_len - 1) / NBBY) in dhcp6_makemessage()
810 pdp->prefix_len = ap->prefix_len; in dhcp6_makemessage()
816 ap->prefix_len - 1) / NBBY) + 1; in dhcp6_makemessage()
823 pp += (size_t)((ap->prefix_len - 1) / NBBY) in dhcp6_makemessage()
825 u8 = ap->prefix_len % NBBY; in dhcp6_makemessage()
1331 if (!((ia->ia_type == D6_OPTION_IA_PD && ia->prefix_len) || in dhcp6_addrequestedaddrs()
1349 a->prefix_len = ia->prefix_len; in dhcp6_addrequestedaddrs()
1361 a->prefix_len = 128; in dhcp6_addrequestedaddrs()
1362 ipv6_makeprefix(&a->prefix, &a->addr, a->prefix_len); in dhcp6_addrequestedaddrs()
1367 "%s/%d", iap, a->prefix_len); in dhcp6_addrequestedaddrs()
1789 a->prefix_len = 128; in dhcp6_findna()
1790 ipv6_makeprefix(&a->prefix, &a->addr, a->prefix_len); in dhcp6_findna()
1794 "%s/%d", ia, a->prefix_len); in dhcp6_findna()
1868 a->prefix_len = pdp->prefix_len; in dhcp6_findpd()
1872 "%s/%d", ia, a->prefix_len); in dhcp6_findpd()
1921 if (((a->prefix_exclude_len - a->prefix_len - 1) / NBBY) + 1 in dhcp6_findpd()
1929 u8 = a->prefix_len % NBBY; in dhcp6_findpd()
2345 a->prefix_len = (uint8_t)pfxlen; in dhcp6_ifdelegateaddr()
2367 snprintf(a->saddr, sizeof(a->saddr), "%s/%d", sa, a->prefix_len); in dhcp6_ifdelegateaddr()