Home
last modified time | relevance | path

Searched refs:root6 (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/drivers/net/wireguard/
Dallowedips.c254 table->root4 = table->root6 = NULL; in wg_allowedips_init()
260 struct allowedips_node __rcu *old4 = table->root4, *old6 = table->root6; in wg_allowedips_free()
264 RCU_INIT_POINTER(table->root6, NULL); in wg_allowedips_free()
300 return add(&table->root6, 128, key, cidr, peer, lock); in wg_allowedips_insert_v6()
362 return lookup(table->root6, 128, &ipv6_hdr(skb)->daddr); in wg_allowedips_lookup_dst()
373 return lookup(table->root6, 128, &ipv6_hdr(skb)->saddr); in wg_allowedips_lookup_src()
Dallowedips.h31 struct allowedips_node __rcu *root6; member
/linux-5.19.10/drivers/net/wireguard/selftest/
Dallowedips.c379 print_tree(t.root6, 128); in randomized_test()
391 if (lookup(t.root6, 128, ip) != horrible_allowedips_lookup_v6(&h, (struct in6_addr *)ip)) { in randomized_test()
404 if (t.root4 || t.root6) { in randomized_test()
543 print_tree(t.root6, 128); in wg_allowedips_selftest()