Home
last modified time | relevance | path

Searched refs:wg_peer (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/net/wireguard/
A Dtimers.h11 struct wg_peer;
13 void wg_timers_init(struct wg_peer *peer);
14 void wg_timers_stop(struct wg_peer *peer);
15 void wg_timers_data_sent(struct wg_peer *peer);
16 void wg_timers_data_received(struct wg_peer *peer);
17 void wg_timers_any_authenticated_packet_sent(struct wg_peer *peer);
18 void wg_timers_any_authenticated_packet_received(struct wg_peer *peer);
19 void wg_timers_handshake_initiated(struct wg_peer *peer);
20 void wg_timers_handshake_complete(struct wg_peer *peer);
21 void wg_timers_session_derived(struct wg_peer *peer);
[all …]
A Dtimers.c30 static inline void mod_peer_timer(struct wg_peer *peer, in mod_peer_timer()
43 struct wg_peer *peer = from_timer(peer, timer, in wg_expired_retransmit_handshake()
124 struct wg_peer *peer = container_of(work, struct wg_peer, in wg_queued_expired_zero_key_material()
137 struct wg_peer *peer = from_timer(peer, timer, in wg_expired_send_persistent_keepalive()
145 void wg_timers_data_sent(struct wg_peer *peer) in wg_timers_data_sent()
154 void wg_timers_data_received(struct wg_peer *peer) in wg_timers_data_received()
182 void wg_timers_handshake_initiated(struct wg_peer *peer) in wg_timers_handshake_initiated()
192 void wg_timers_handshake_complete(struct wg_peer *peer) in wg_timers_handshake_complete()
203 void wg_timers_session_derived(struct wg_peer *peer) in wg_timers_session_derived()
219 void wg_timers_init(struct wg_peer *peer) in wg_timers_init()
[all …]
A Dpeer.c21 struct wg_peer *wg_peer_create(struct wg_device *wg, in wg_peer_create()
25 struct wg_peer *peer; in wg_peer_create()
72 struct wg_peer *wg_peer_get_maybe_zero(struct wg_peer *peer) in wg_peer_get_maybe_zero()
81 static void peer_make_dead(struct wg_peer *peer) in peer_make_dead()
95 static void peer_remove_after_dead(struct wg_peer *peer) in peer_remove_after_dead()
157 void wg_peer_remove(struct wg_peer *peer) in wg_peer_remove()
170 struct wg_peer *peer, *temp; in wg_peer_remove_all()
189 struct wg_peer *peer = container_of(rcu, struct wg_peer, rcu); in rcu_release()
203 struct wg_peer *peer = container_of(refcount, struct wg_peer, refcount); in kref_release()
224 void wg_peer_put(struct wg_peer *peer) in wg_peer_put()
[all …]
A Dpeer.h37 struct wg_peer { struct
69 struct wg_peer *wg_peer_create(struct wg_device *wg, argument
73 struct wg_peer *__must_check wg_peer_get_maybe_zero(struct wg_peer *peer);
74 static inline struct wg_peer *wg_peer_get(struct wg_peer *peer) in wg_peer_get()
79 void wg_peer_put(struct wg_peer *peer);
80 void wg_peer_remove(struct wg_peer *peer);
A Dallowedips.h13 struct wg_peer;
16 struct wg_peer __rcu *peer;
38 u8 cidr, struct wg_peer *peer, struct mutex *lock);
40 u8 cidr, struct wg_peer *peer, struct mutex *lock);
42 struct wg_peer *peer, struct mutex *lock);
47 struct wg_peer *wg_allowedips_lookup_dst(struct allowedips *table,
49 struct wg_peer *wg_allowedips_lookup_src(struct allowedips *table,
A Dpeerlookup.h15 struct wg_peer;
26 struct wg_peer *peer);
28 struct wg_peer *peer);
29 struct wg_peer *
45 struct wg_peer *peer;
62 const __le32 index, struct wg_peer **peer);
A Dsocket.h17 int wg_socket_send_buffer_to_peer(struct wg_peer *peer, void *data,
19 int wg_socket_send_skb_to_peer(struct wg_peer *peer, struct sk_buff *skb,
27 void wg_socket_set_peer_endpoint(struct wg_peer *peer,
29 void wg_socket_set_peer_endpoint_from_skb(struct wg_peer *peer,
31 void wg_socket_clear_peer_endpoint_src(struct wg_peer *peer);
A Dsend.c21 static void wg_packet_send_handshake_initiation(struct wg_peer *peer) in wg_packet_send_handshake_initiation()
48 struct wg_peer *peer = container_of(work, struct wg_peer, in wg_packet_handshake_send_worker()
55 void wg_packet_send_queued_handshake_initiation(struct wg_peer *peer, in wg_packet_send_queued_handshake_initiation()
85 void wg_packet_send_handshake_response(struct wg_peer *peer) in wg_packet_send_handshake_response()
124 static void keep_key_fresh(struct wg_peer *peer) in keep_key_fresh()
221 void wg_packet_send_keepalive(struct wg_peer *peer) in wg_packet_send_keepalive()
242 static void wg_packet_create_data_done(struct wg_peer *peer, struct sk_buff *first) in wg_packet_create_data_done()
264 struct wg_peer *peer = container_of(work, struct wg_peer, transmit_packet_work); in wg_packet_tx_worker()
311 static void wg_packet_create_data(struct wg_peer *peer, struct sk_buff *first) in wg_packet_create_data()
333 void wg_packet_purge_staged_packets(struct wg_peer *peer) in wg_packet_purge_staged_packets()
[all …]
A Dqueueing.h17 struct wg_peer;
39 void wg_packet_send_queued_handshake_initiation(struct wg_peer *peer,
41 void wg_packet_send_handshake_response(struct wg_peer *peer);
45 void wg_packet_send_keepalive(struct wg_peer *peer);
46 void wg_packet_purge_staged_packets(struct wg_peer *peer);
47 void wg_packet_send_staged_packets(struct wg_peer *peer);
190 struct wg_peer *peer = wg_peer_get(PACKET_PEER(skb)); in wg_queue_enqueue_per_peer_tx()
203 struct wg_peer *peer = wg_peer_get(PACKET_PEER(skb)); in wg_queue_enqueue_per_peer_rx()
A Dnoise.h99 struct wg_peer *peer);
112 void wg_noise_expire_current_peer_keypairs(struct wg_peer *peer);
117 void wg_noise_precompute_static_static(struct wg_peer *peer);
122 struct wg_peer *
128 struct wg_peer *
A Dpeerlookup.c36 struct wg_peer *peer) in wg_pubkey_hashtable_add()
45 struct wg_peer *peer) in wg_pubkey_hashtable_remove()
53 struct wg_peer *
57 struct wg_peer *iter_peer, *peer = NULL; in wg_pubkey_hashtable_lookup()
204 const __le32 index, struct wg_peer **peer) in wg_index_hashtable_lookup()
A Dcookie.h12 struct wg_peer;
44 void wg_cookie_checker_precompute_peer_keys(struct wg_peer *peer);
51 struct wg_peer *peer);
A Dallowedips.c124 static struct wg_peer *lookup(struct allowedips_node __rcu *root, u8 bits, in lookup()
130 struct wg_peer *peer = NULL; in lookup()
179 u8 cidr, struct wg_peer *peer, struct mutex *lock) in add()
279 u8 cidr, struct wg_peer *peer, struct mutex *lock) in wg_allowedips_insert_v4()
290 u8 cidr, struct wg_peer *peer, struct mutex *lock) in wg_allowedips_insert_v6()
301 struct wg_peer *peer, struct mutex *lock) 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()
A Dreceive.c20 static void update_rx_stats(struct wg_peer *peer, size_t len) in update_rx_stats()
103 struct wg_peer *peer = NULL; in wg_receive_handshake_packet()
227 static void keep_key_fresh(struct wg_peer *peer) in keep_key_fresh()
342 static void wg_packet_consume_data_done(struct wg_peer *peer, in wg_packet_consume_data_done()
348 struct wg_peer *routed_peer; in wg_packet_consume_data_done()
447 struct wg_peer *peer = container_of(napi, struct wg_peer, napi); in wg_packet_rx_poll()
519 struct wg_peer *peer = NULL; in wg_packet_consume_data()
A Dnetlink.c98 struct wg_peer *next_peer;
106 get_peer(struct wg_peer *peer, struct sk_buff *skb, struct dump_ctx *ctx) in get_peer()
212 struct wg_peer *peer, *next_peer_cursor; in wg_get_device_dump()
316 struct wg_peer *peer; in set_port()
329 static int set_allowedip(struct wg_peer *peer, struct nlattr **attrs) in set_allowedip()
360 struct wg_peer *peer = NULL; in set_peer()
527 struct wg_peer *peer; in wg_set_device()
549 struct wg_peer *peer, *temp; in wg_set_device()
A Ddevice.c34 struct wg_peer *peer; in wg_open()
67 struct wg_peer *peer; in wg_pm_notification()
100 struct wg_peer *peer; in wg_stop()
123 struct wg_peer *peer; in wg_xmit()
401 struct wg_peer *peer; in wg_netns_pre_exit()
A Dnoise.c47 void wg_noise_precompute_static_static(struct wg_peer *peer) in wg_noise_precompute_static_static()
63 struct wg_peer *peer) in wg_noise_handshake_init()
98 static struct noise_keypair *keypair_create(struct wg_peer *peer) in keypair_create()
179 void wg_noise_expire_current_peer_keypairs(struct wg_peer *peer) in wg_noise_expire_current_peer_keypairs()
550 struct wg_peer *
554 struct wg_peer *peer = NULL, *ret_peer = NULL; in wg_noise_handshake_consume_initiation()
694 struct wg_peer *
699 struct wg_peer *peer = NULL, *ret_peer = NULL; in wg_noise_handshake_consume_response()
810 if (likely(!READ_ONCE(container_of(handshake, struct wg_peer, in wg_noise_handshake_begin_session()
A Dsocket.c167 int wg_socket_send_skb_to_peer(struct wg_peer *peer, struct sk_buff *skb, u8 ds) in wg_socket_send_skb_to_peer()
188 int wg_socket_send_buffer_to_peer(struct wg_peer *peer, void *buffer, in wg_socket_send_buffer_to_peer()
272 void wg_socket_set_peer_endpoint(struct wg_peer *peer, in wg_socket_set_peer_endpoint()
298 void wg_socket_set_peer_endpoint_from_skb(struct wg_peer *peer, in wg_socket_set_peer_endpoint_from_skb()
307 void wg_socket_clear_peer_endpoint_src(struct wg_peer *peer) in wg_socket_clear_peer_endpoint_src()
A Dcookie.c61 void wg_cookie_checker_precompute_peer_keys(struct wg_peer *peer) in wg_cookie_checker_precompute_peer_keys()
157 struct wg_peer *peer) in wg_cookie_add_mac_to_packet()
201 struct wg_peer *peer = NULL; in wg_cookie_message_consume()
/linux/drivers/net/wireguard/selftest/
A Dallowedips.c258 struct wg_peer **peers, *peer; in randomized_test()
449 static __init struct wg_peer *init_peer(void) in init_peer()
451 struct wg_peer *peer = kzalloc(sizeof(*peer), GFP_KERNEL); in init_peer()
493 struct wg_peer *a = init_peer(), *b = init_peer(), *c = init_peer(), in wg_allowedips_selftest()

Completed in 52 milliseconds