Lines Matching full:prefix
60 static void ipv6_pe_filter_cb(struct in6_addr *prefix, bool is_denylist, in ipv6_pe_filter_cb() argument
68 net_addr_ntop(AF_INET6, prefix, ipaddr, sizeof(ipaddr) - 1); in ipv6_pe_filter_cb()
112 struct net_if_ipv6_prefix *prefix; in address_lifetime_cb() local
118 prefix = net_if_ipv6_prefix_get(iface, in address_lifetime_cb()
120 if (prefix) { in address_lifetime_cb()
121 prefix_len = prefix->len; in address_lifetime_cb()
342 struct in6_addr prefix; in cmd_net_ip6_pe() local
348 PR_ERROR("Correct usage: net ipv6 pe [add | del] [allow | deny] [<prefix>]\n"); in cmd_net_ip6_pe()
397 ret = net_addr_pton(AF_INET6, argv[arg], &prefix); in cmd_net_ip6_pe()
399 PR("Invalid prefix \"%s\"\n", argv[arg]); in cmd_net_ip6_pe()
401 PR("Do not add the prefix length.\n"); in cmd_net_ip6_pe()
408 ret = net_ipv6_pe_add_filter(&prefix, !do_allowlisting); in cmd_net_ip6_pe()
410 ret = net_ipv6_pe_del_filter(&prefix); in cmd_net_ip6_pe()
416 net_sprint_ipv6_addr(&prefix), in cmd_net_ip6_pe()
420 net_sprint_ipv6_addr(&prefix)); in cmd_net_ip6_pe()
458 "net ipv6 pe add [allow|deny] <IPv6 prefix>\n"
461 "deny listed (declined) prefix. Default is to allow list "
462 "the prefix.\n"
463 "ipv6 pe del <IPv6 prefix>\n"