Searched refs:allowedips_node (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/drivers/net/wireguard/ |
D | allowedips.c | 19 static void copy_and_assign_cidr(struct allowedips_node *node, const u8 *src, in copy_and_assign_cidr() 34 static void push_rcu(struct allowedips_node **stack, in push_rcu() 35 struct allowedips_node __rcu *p, unsigned int *len) in push_rcu() 45 struct allowedips_node *node, *stack[128] = { in root_free_rcu() 46 container_of(rcu, struct allowedips_node, rcu) }; in root_free_rcu() 56 static void root_remove_peer_lists(struct allowedips_node *root) in root_remove_peer_lists() 58 struct allowedips_node *node, *stack[128] = { root }; in root_remove_peer_lists() 69 static void walk_remove_by_peer(struct allowedips_node __rcu **top, in walk_remove_by_peer() 79 struct allowedips_node __rcu **stack[128], **nptr; in walk_remove_by_peer() 80 struct allowedips_node *node, *prev; in walk_remove_by_peer() [all …]
|
D | allowedips.h | 15 struct allowedips_node { struct 17 struct allowedips_node __rcu *bit[2]; argument 33 struct allowedips_node __rcu *root4; argument 34 struct allowedips_node __rcu *root6; 47 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-v5.10/drivers/net/wireguard/selftest/ |
D | allowedips.c | 31 static __init void print_node(struct allowedips_node *node, u8 bits) in print_node() 78 static __init void print_tree(struct allowedips_node __rcu *top, u8 bits) in print_tree() 503 struct allowedips_node *iter_node; in wg_allowedips_selftest()
|