Searched refs:allowedips_node (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/drivers/net/wireguard/ |
D | allowedips.c | 23 static void copy_and_assign_cidr(struct allowedips_node *node, const u8 *src, in copy_and_assign_cidr() 36 static inline u8 choose(struct allowedips_node *node, const u8 *key) in choose() 41 static void push_rcu(struct allowedips_node **stack, in push_rcu() 42 struct allowedips_node __rcu *p, unsigned int *len) in push_rcu() 53 kmem_cache_free(node_cache, container_of(rcu, struct allowedips_node, rcu)); in node_free_rcu() 58 struct allowedips_node *node, *stack[MAX_ALLOWEDIPS_BITS] = { in root_free_rcu() 59 container_of(rcu, struct allowedips_node, rcu) }; in root_free_rcu() 69 static void root_remove_peer_lists(struct allowedips_node *root) in root_remove_peer_lists() 71 struct allowedips_node *node, *stack[MAX_ALLOWEDIPS_BITS] = { root }; in root_remove_peer_lists() 87 static u8 common_bits(const struct allowedips_node *node, const u8 *key, in common_bits() [all …]
|
D | allowedips.h | 15 struct allowedips_node { struct 17 struct allowedips_node __rcu *bit[2]; argument 30 struct allowedips_node __rcu *root4; argument 31 struct allowedips_node __rcu *root6; 44 int wg_allowedips_read_node(struct allowedips_node *node, u8 ip[16], u8 *cidr);
|
D | netlink.c | 100 struct allowedips_node *next_allowedip; 110 struct allowedips_node *allowedips_node = ctx->next_allowedip; in get_peer() local 123 if (!allowedips_node) { in get_peer() 160 allowedips_node = in get_peer() 162 struct allowedips_node, peer_list); in get_peer() 164 if (!allowedips_node) in get_peer() 175 list_for_each_entry_from(allowedips_node, &peer->allowedips_list, in get_peer() 180 family = wg_allowedips_read_node(allowedips_node, ip, &cidr); in get_peer() 184 ctx->next_allowedip = allowedips_node; in get_peer()
|
/linux-6.1.9/drivers/net/wireguard/selftest/ |
D | allowedips.c | 22 static __init void print_node(struct allowedips_node *node, u8 bits) in print_node() 64 static __init void print_tree(struct allowedips_node __rcu *top, u8 bits) in print_tree() 496 struct allowedips_node *iter_node; in wg_allowedips_selftest()
|