Searched refs:allowedips_node (Results 1 - 4 of 4) sorted by relevance

/linux-master/drivers/net/wireguard/
H A Dallowedips.h15 struct allowedips_node { struct
17 struct allowedips_node __rcu *bit[2];
30 struct allowedips_node __rcu *root4;
31 struct allowedips_node __rcu *root6;
44 int wg_allowedips_read_node(struct allowedips_node *node, u8 ip[16], u8 *cidr);
H A Dallowedips.c23 static void copy_and_assign_cidr(struct allowedips_node *node, const u8 *src,
36 static inline u8 choose(struct allowedips_node *node, const u8 *key)
41 static void push_rcu(struct allowedips_node **stack,
42 struct allowedips_node __rcu *p, unsigned int *len)
53 kmem_cache_free(node_cache, container_of(rcu, struct allowedips_node, rcu));
58 struct allowedips_node *node, *stack[MAX_ALLOWEDIPS_DEPTH] = {
59 container_of(rcu, struct allowedips_node, rcu) };
69 static void root_remove_peer_lists(struct allowedips_node *root)
71 struct allowedips_node *node, *stack[MAX_ALLOWEDIPS_DEPTH] = { root };
87 static u8 common_bits(const struct allowedips_node *nod
[all...]
H A Dnetlink.c100 struct allowedips_node *next_allowedip;
110 struct allowedips_node *allowedips_node = ctx->next_allowedip; local
123 if (!allowedips_node) {
160 allowedips_node =
162 struct allowedips_node, peer_list);
164 if (!allowedips_node)
175 list_for_each_entry_from(allowedips_node, &peer->allowedips_list,
180 family = wg_allowedips_read_node(allowedips_node, ip, &cidr);
184 ctx->next_allowedip = allowedips_node;
[all...]
/linux-master/drivers/net/wireguard/selftest/
H A Dallowedips.c22 static __init void print_node(struct allowedips_node *node, u8 bits)
64 static __init void print_tree(struct allowedips_node __rcu *top, u8 bits)
496 struct allowedips_node *iter_node;

Completed in 131 milliseconds