Home
last modified time | relevance | path

Searched refs:allowedips (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.10/drivers/net/wireguard/
Dallowedips.h32 struct allowedips { struct
38 void wg_allowedips_init(struct allowedips *table); argument
39 void wg_allowedips_free(struct allowedips *table, struct mutex *mutex);
40 int wg_allowedips_insert_v4(struct allowedips *table, const struct in_addr *ip,
42 int wg_allowedips_insert_v6(struct allowedips *table, const struct in6_addr *ip,
44 void wg_allowedips_remove_by_peer(struct allowedips *table,
50 struct wg_peer *wg_allowedips_lookup_dst(struct allowedips *table,
52 struct wg_peer *wg_allowedips_lookup_src(struct allowedips *table,
Dallowedips.c284 void wg_allowedips_init(struct allowedips *table) in wg_allowedips_init()
290 void wg_allowedips_free(struct allowedips *table, struct mutex *lock) in wg_allowedips_free()
313 int wg_allowedips_insert_v4(struct allowedips *table, const struct in_addr *ip, in wg_allowedips_insert_v4()
324 int wg_allowedips_insert_v6(struct allowedips *table, const struct in6_addr *ip, in wg_allowedips_insert_v6()
335 void wg_allowedips_remove_by_peer(struct allowedips *table, in wg_allowedips_remove_by_peer()
356 struct wg_peer *wg_allowedips_lookup_dst(struct allowedips *table, in wg_allowedips_lookup_dst()
367 struct wg_peer *wg_allowedips_lookup_src(struct allowedips *table, in wg_allowedips_lookup_src()
DMakefile14 wireguard-y += allowedips.o
Ddevice.h53 struct allowedips peer_allowedips;
/Linux-v5.10/tools/testing/selftests/wireguard/
Dnetns.sh537 allowedips=( )
539 allowedips+=( abcd::$i )
543 allowedips="${allowedips[*]}"
547 n0 wg set wg0 peer "$pub2" allowed-ips "$allowedips"
549 read -r pub allowedips
550 [[ $pub == "$pub1" && $allowedips == "(none)" ]]
551 read -r pub allowedips
554 for _ in $allowedips; do
/Linux-v5.10/drivers/net/wireguard/selftest/
Dallowedips.c279 struct allowedips t; in randomized_test()
505 struct allowedips t; in wg_allowedips_selftest()