Home
last modified time | relevance | path

Searched refs:allowedips (Results 1 - 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/wireguard/
H A Dallowedips.h29 struct allowedips { struct
35 void wg_allowedips_init(struct allowedips *table);
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,
H A Dallowedips.c6 #include "allowedips.h"
252 void wg_allowedips_init(struct allowedips *table) in wg_allowedips_init()
258 void wg_allowedips_free(struct allowedips *table, struct mutex *lock) in wg_allowedips_free()
281 int wg_allowedips_insert_v4(struct allowedips *table, const struct in_addr *ip, in wg_allowedips_insert_v4()
292 int wg_allowedips_insert_v6(struct allowedips *table, const struct in6_addr *ip, in wg_allowedips_insert_v6()
303 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()
389 #include "selftest/allowedips.c"
H A DMakefile13 wireguard-y += allowedips.o
H A Ddevice.h10 #include "allowedips.h"
50 struct allowedips peer_allowedips;
/kernel/linux/linux-6.6/drivers/net/wireguard/
H A Dallowedips.h29 struct allowedips { struct
35 void wg_allowedips_init(struct allowedips *table);
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,
H A Dallowedips.c6 #include "allowedips.h"
252 void wg_allowedips_init(struct allowedips *table) in wg_allowedips_init()
258 void wg_allowedips_free(struct allowedips *table, struct mutex *lock) in wg_allowedips_free()
281 int wg_allowedips_insert_v4(struct allowedips *table, const struct in_addr *ip, in wg_allowedips_insert_v4()
292 int wg_allowedips_insert_v6(struct allowedips *table, const struct in6_addr *ip, in wg_allowedips_insert_v6()
303 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()
389 #include "selftest/allowedips.c"
H A DMakefile13 wireguard-y += allowedips.o
H A Ddevice.h10 #include "allowedips.h"
50 struct allowedips peer_allowedips;
/kernel/linux/linux-5.10/tools/testing/selftests/wireguard/
H A Dnetns.sh577 allowedips=( )
579 allowedips+=( abcd::$i )
583 allowedips="${allowedips[*]}"
587 n0 wg set wg0 peer "$pub2" allowed-ips "$allowedips"
589 read -r pub allowedips
590 [[ $pub == "$pub1" && $allowedips == "(none)" ]]
591 read -r pub allowedips
594 for _ in $allowedips; do
/kernel/linux/linux-6.6/tools/testing/selftests/wireguard/
H A Dnetns.sh589 allowedips=( )
591 allowedips+=( abcd::$i )
595 allowedips="${allowedips[*]}"
599 n0 wg set wg0 peer "$pub2" allowed-ips "$allowedips"
601 read -r pub allowedips
602 [[ $pub == "$pub1" && $allowedips == "(none)" ]]
603 read -r pub allowedips
606 for _ in $allowedips; do
/kernel/linux/linux-5.10/drivers/net/wireguard/selftest/
H A Dallowedips.c5 * This contains some basic static unit tests for the allowedips data structure.
261 struct allowedips t; in randomized_test()
271 pr_err("allowedips random self-test malloc: FAIL\n"); in randomized_test()
277 pr_err("allowedips random self-test malloc: FAIL\n"); in randomized_test()
292 pr_err("allowedips random self-test malloc: FAIL\n"); in randomized_test()
297 pr_err("allowedips random self-test malloc: FAIL\n"); in randomized_test()
319 pr_err("allowedips random self-test malloc: FAIL\n"); in randomized_test()
324 pr_err("allowedips random self-test malloc: FAIL\n"); in randomized_test()
336 pr_err("allowedips random self-test malloc: FAIL\n"); in randomized_test()
341 pr_err("allowedips rando in randomized_test()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireguard/selftest/
H A Dallowedips.c5 * This contains some basic static unit tests for the allowedips data structure.
261 struct allowedips t; in randomized_test()
271 pr_err("allowedips random self-test malloc: FAIL\n"); in randomized_test()
277 pr_err("allowedips random self-test malloc: FAIL\n"); in randomized_test()
292 pr_err("allowedips random self-test malloc: FAIL\n"); in randomized_test()
297 pr_err("allowedips random self-test malloc: FAIL\n"); in randomized_test()
319 pr_err("allowedips random self-test malloc: FAIL\n"); in randomized_test()
324 pr_err("allowedips random self-test malloc: FAIL\n"); in randomized_test()
336 pr_err("allowedips random self-test malloc: FAIL\n"); in randomized_test()
341 pr_err("allowedips rando in randomized_test()
[all...]

Completed in 7 milliseconds