Lines Matching refs:prefix_len

315     const struct in6_addr *prefix, int prefix_len,  in ipv6_makestableprivate1()  argument
325 if (prefix_len < 0 || prefix_len > 120) { in ipv6_makestableprivate1()
330 l = (size_t)(ROUNDUP8(prefix_len) / NBBY); in ipv6_makestableprivate1()
368 if (prefix_len != 64) in ipv6_makestableprivate1()
379 const struct in6_addr *prefix, int prefix_len, in ipv6_makestableprivate() argument
390 r = ipv6_makestableprivate1(addr, prefix, prefix_len, in ipv6_makestableprivate()
403 const struct in6_addr *prefix, int prefix_len) in ipv6_makeaddr() argument
408 if (prefix_len < 0 || prefix_len > 120) { in ipv6_makeaddr()
420 prefix, prefix_len, ifp, &dad) == -1) in ipv6_makeaddr()
425 if (prefix_len > 64) { in ipv6_makeaddr()
539 short prefix_len, // length of prefix received in ipv6_userprefix() argument
546 if (prefix_len < 0 || prefix_len > 120 || in ipv6_userprefix()
554 if (result_len < prefix_len || user_number > INT_MAX || in ipv6_userprefix()
555 ffs((int)user_number) > result_len - prefix_len) in ipv6_userprefix()
597 &ap->addr, ap->prefix_len, ifa_flags); in ipv6_checkaddrflags()
918 const struct in6_addr *addr, uint8_t prefix_len, int flags) in ipv6_handleifa() argument
972 ap->prefix_len = prefix_len; in ipv6_handleifa()
974 ap->prefix_len); in ipv6_handleifa()
979 "%s/%d", cbp, prefix_len); in ipv6_handleifa()
1102 ap->prefix_len = 64; in ipv6_newlinklocal()
1157 &ap->prefix, ap->prefix_len, ifp, &dadcounter) == -1) in ipv6_addlinklocal()
1502 ipv6_mask(&mask, ia0->prefix_len); in ipv6_createtempaddr()
1552 ia->prefix_len = ia0->prefix_len; in ipv6_createtempaddr()
1575 cbp, ia->prefix_len); in ipv6_createtempaddr()
1924 if (addr == NULL || addr->prefix_len > 128) { in make_prefix()
1931 if (addr->prefix_len == 128 || in make_prefix()
1944 ipv6_mask(&r->net, addr->prefix_len); in make_prefix()