Searched refs:allowedips_node (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/net/wireguard/ |
| A D | allowedips.c | 39 static void push_rcu(struct allowedips_node **stack, in push_rcu() 55 struct allowedips_node *node, *stack[128] = { in root_free_rcu() 56 container_of(rcu, struct allowedips_node, rcu) }; in root_free_rcu() 68 struct allowedips_node *node, *stack[128] = { root }; in root_remove_peer_lists() 108 static struct allowedips_node *find_node(struct allowedips_node *trie, u8 bits, in find_node() 111 struct allowedips_node *node = trie, *found = NULL; in find_node() 129 struct allowedips_node *node; in lookup() 151 struct allowedips_node *parent = NULL; in node_placement() 166 static inline void connect_node(struct allowedips_node __rcu **parent, u8 bit, struct allowedips_no… in connect_node() 172 static inline void choose_and_connect_node(struct allowedips_node *parent, struct allowedips_node *… in choose_and_connect_node() [all …]
|
| A 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);
|
| A 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/drivers/net/wireguard/selftest/ |
| A 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()
|
Completed in 11 milliseconds