Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/net/wireguard/
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 void wg_allowedips_remove_by_peer(struct allowedips *table,
47 struct wg_peer *wg_allowedips_lookup_dst(struct allowedips *table,
49 struct wg_peer *wg_allowedips_lookup_src(struct allowedips *table,
Dallowedips.c249 void wg_allowedips_init(struct allowedips *table) in wg_allowedips_init()
255 void wg_allowedips_free(struct allowedips *table, struct mutex *lock) in wg_allowedips_free()
278 int wg_allowedips_insert_v4(struct allowedips *table, const struct in_addr *ip, in wg_allowedips_insert_v4()
289 int wg_allowedips_insert_v6(struct allowedips *table, const struct in6_addr *ip, in wg_allowedips_insert_v6()
300 void wg_allowedips_remove_by_peer(struct allowedips *table, in wg_allowedips_remove_by_peer()
353 struct wg_peer *wg_allowedips_lookup_dst(struct allowedips *table, in wg_allowedips_lookup_dst()
364 struct wg_peer *wg_allowedips_lookup_src(struct allowedips *table, in wg_allowedips_lookup_src()
DMakefile13 wireguard-y += allowedips.o
Ddevice.h54 struct allowedips peer_allowedips;
/Linux-v5.15/tools/testing/selftests/wireguard/
Dnetns.sh551 allowedips=( )
553 allowedips+=( abcd::$i )
557 allowedips="${allowedips[*]}"
561 n0 wg set wg0 peer "$pub2" allowed-ips "$allowedips"
563 read -r pub allowedips
564 [[ $pub == "$pub1" && $allowedips == "(none)" ]]
565 read -r pub allowedips
568 for _ in $allowedips; do
/Linux-v5.15/drivers/net/wireguard/selftest/
Dallowedips.c261 struct allowedips t; in randomized_test()
498 struct allowedips t; in wg_allowedips_selftest()