Lines Matching refs:prefixlen
589 (void) in6_addr_prefix_to_string(&p->opt.in6_addr, p->opt.prefixlen, &addr_p); in sd_radv_add_prefix()
595 cur->opt.prefixlen, in sd_radv_add_prefix()
597 p->opt.prefixlen); in sd_radv_add_prefix()
603 if (cur->opt.prefixlen == p->opt.prefixlen) { in sd_radv_add_prefix()
609 (void) in6_addr_prefix_to_string(&cur->opt.in6_addr, cur->opt.prefixlen, &addr_cur); in sd_radv_add_prefix()
660 unsigned char prefixlen) { in sd_radv_remove_prefix() argument
669 if (prefixlen != cur->opt.prefixlen) in sd_radv_remove_prefix()
690 (void) in6_addr_prefix_to_string(&p->opt.in6_addr, p->opt.prefixlen, &addr_p); in sd_radv_add_route_prefix()
696 cur->opt.prefixlen, in sd_radv_add_route_prefix()
698 p->opt.prefixlen); in sd_radv_add_route_prefix()
704 if (cur->opt.prefixlen == p->opt.prefixlen) { in sd_radv_add_route_prefix()
710 (void) in6_addr_prefix_to_string(&cur->opt.in6_addr, cur->opt.prefixlen, &addr_cur); in sd_radv_add_route_prefix()
860 .opt.prefixlen = 64, in sd_radv_prefix_new()
880 unsigned char prefixlen) { in sd_radv_prefix_set_prefix() argument
885 if (prefixlen < 3 || prefixlen > 128) in sd_radv_prefix_set_prefix()
888 if (prefixlen > 64) in sd_radv_prefix_set_prefix()
890 log_radv(NULL, "Unusual prefix length %d greater than 64", prefixlen); in sd_radv_prefix_set_prefix()
893 p->opt.prefixlen = prefixlen; in sd_radv_prefix_set_prefix()
908 *ret_prefixlen = p->opt.prefixlen; in sd_radv_prefix_get_prefix()
961 .opt.prefixlen = 64, in sd_radv_route_prefix_new()
976 unsigned char prefixlen) { in sd_radv_route_prefix_set_prefix() argument
981 if (prefixlen > 128) in sd_radv_route_prefix_set_prefix()
984 if (prefixlen > 64) in sd_radv_route_prefix_set_prefix()
986 log_radv(NULL, "Unusual prefix length %u greater than 64", prefixlen); in sd_radv_route_prefix_set_prefix()
989 p->opt.prefixlen = prefixlen; in sd_radv_route_prefix_set_prefix()