Home
last modified time | relevance | path

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

/linux/drivers/net/wireguard/
H A Dallowedips.h29 struct allowedips { struct
35 void wg_allowedips_init(struct allowedips *table); argument
36 void wg_allowedips_free(struct allowedips *table, struct mutex *mutex);
37 int wg_allowedips_insert_v4(struct allowedips *table, const struct in_addr *ip,
39 int wg_allowedips_insert_v6(struct allowedips *table, const struct in6_addr *ip,
41 int wg_allowedips_remove_v4(struct allowedips *table, const struct in_addr *ip,
43 int wg_allowedips_remove_v6(struct allowedips *table, const struct in6_addr *ip,
45 void wg_allowedips_remove_by_peer(struct allowedips *table,
51 struct wg_peer *wg_allowedips_lookup_dst(struct allowedips *table,
53 struct wg_peer *wg_allowedips_lookup_src(struct allowedips *table,
H A Dallowedips.c298 void wg_allowedips_init(struct allowedips *table) in wg_allowedips_init()
304 void wg_allowedips_free(struct allowedips *table, struct mutex *lock) in wg_allowedips_free()
327 int wg_allowedips_insert_v4(struct allowedips *table, const struct in_addr *ip, in wg_allowedips_insert_v4()
338 int wg_allowedips_insert_v6(struct allowedips *table, const struct in6_addr *ip, in wg_allowedips_insert_v6()
349 int wg_allowedips_remove_v4(struct allowedips *table, const struct in_addr *ip, in wg_allowedips_remove_v4()
360 int wg_allowedips_remove_v6(struct allowedips *table, const struct in6_addr *ip, in wg_allowedips_remove_v6()
371 void wg_allowedips_remove_by_peer(struct allowedips *table, in wg_allowedips_remove_by_peer()
396 struct wg_peer *wg_allowedips_lookup_dst(struct allowedips *table, in wg_allowedips_lookup_dst()
407 struct wg_peer *wg_allowedips_lookup_src(struct allowedips *table, in wg_allowedips_lookup_src()
H A DMakefile13 wireguard-y += allowedips.o
H A Ddevice.h50 struct allowedips peer_allowedips;
/linux/tools/testing/selftests/wireguard/
H A Dnetns.sh590 allowedips=( )
592 allowedips+=( abcd::$i )
596 allowedips="${allowedips[*]}"
600 n0 wg set wg0 peer "$pub2" allowed-ips "$allowedips"
602 read -r pub allowedips
603 [[ $pub == "$pub1" && $allowedips == "(none)" ]]
604 read -r pub allowedips
607 for _ in $allowedips; do
614 allowedips=( )
616 allowedips+=( 192.168.0.$i )
[all …]
/linux/drivers/net/wireguard/selftest/
H A Dallowedips.c261 struct allowedips t; in randomized_test()
501 struct allowedips t; in wg_allowedips_selftest()