/kernel/linux/linux-5.10/drivers/net/wireguard/ |
D | timers.h | 11 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 …]
|
D | timers.c | 30 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() 81 struct wg_peer *peer = from_timer(peer, timer, timer_send_keepalive); in wg_expired_send_keepalive() 93 struct wg_peer *peer = from_timer(peer, timer, timer_new_handshake); in wg_expired_new_handshake() 107 struct wg_peer *peer = from_timer(peer, timer, timer_zero_key_material); in wg_expired_zero_key_material() 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() 168 void wg_timers_any_authenticated_packet_sent(struct wg_peer *peer) in wg_timers_any_authenticated_packet_sent() [all …]
|
D | peer.c | 21 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 …]
|
D | peer.h | 37 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);
|
D | allowedips.h | 13 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,
|
D | peerlookup.h | 15 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);
|
D | socket.h | 17 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);
|
D | send.c | 21 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 …]
|
D | queueing.h | 17 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()
|
D | noise.h | 99 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 *
|
D | peerlookup.c | 36 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()
|
D | cookie.h | 12 struct wg_peer; 44 void wg_cookie_checker_precompute_peer_keys(struct wg_peer *peer); 51 struct wg_peer *peer);
|
D | allowedips.c | 127 static struct wg_peer *lookup(struct allowedips_node __rcu *root, u8 bits, in lookup() 133 struct wg_peer *peer = NULL; in lookup() 182 u8 cidr, struct wg_peer *peer, struct mutex *lock) in add() 282 u8 cidr, struct wg_peer *peer, struct mutex *lock) in wg_allowedips_insert_v4() 293 u8 cidr, struct wg_peer *peer, struct mutex *lock) in wg_allowedips_insert_v6() 304 struct wg_peer *peer, struct mutex *lock) 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()
|
D | receive.c | 20 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()
|
D | netlink.c | 98 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() 526 struct wg_peer *peer; in wg_set_device() 548 struct wg_peer *peer, *temp; in wg_set_device()
|
D | device.c | 35 struct wg_peer *peer; in wg_open() 68 struct wg_peer *peer; in wg_pm_notification() 101 struct wg_peer *peer; in wg_stop() 124 struct wg_peer *peer; in wg_xmit() 402 struct wg_peer *peer; in wg_netns_pre_exit()
|
D | noise.c | 47 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() 583 struct wg_peer * 587 struct wg_peer *peer = NULL, *ret_peer = NULL; in wg_noise_handshake_consume_initiation() 727 struct wg_peer * 732 struct wg_peer *peer = NULL, *ret_peer = NULL; in wg_noise_handshake_consume_response() 843 if (likely(!READ_ONCE(container_of(handshake, struct wg_peer, in wg_noise_handshake_begin_session()
|
D | socket.c | 168 int wg_socket_send_skb_to_peer(struct wg_peer *peer, struct sk_buff *skb, u8 ds) in wg_socket_send_skb_to_peer() 189 int wg_socket_send_buffer_to_peer(struct wg_peer *peer, void *buffer, in wg_socket_send_buffer_to_peer() 273 void wg_socket_set_peer_endpoint(struct wg_peer *peer, in wg_socket_set_peer_endpoint() 299 void wg_socket_set_peer_endpoint_from_skb(struct wg_peer *peer, in wg_socket_set_peer_endpoint_from_skb() 308 void wg_socket_clear_peer_endpoint_src(struct wg_peer *peer) in wg_socket_clear_peer_endpoint_src()
|
D | cookie.c | 61 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()
|
/kernel/linux/linux-5.10/drivers/net/wireguard/selftest/ |
D | allowedips.c | 258 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()
|