diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-07 20:59:20 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-07 20:59:20 +0100 |
commit | 07ced7dfde54492e5493d15874c553042cf255e2 (patch) | |
tree | 0cfcfe2493be3a3a255447c6ce1d854ce6e6ec36 /src/packets.h | |
parent | chacha20poly1305: it's just as fast to use these more simple unaligned access helpers (diff) | |
download | wireguard-monolithic-historical-07ced7dfde54492e5493d15874c553042cf255e2.tar.xz wireguard-monolithic-historical-07ced7dfde54492e5493d15874c553042cf255e2.zip |
send: simplify handshake initiation queueing and introduce lock
Diffstat (limited to 'src/packets.h')
-rw-r--r-- | src/packets.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/packets.h b/src/packets.h index 03ba891..c491640 100644 --- a/src/packets.h +++ b/src/packets.h @@ -24,18 +24,15 @@ struct sk_buff; /* receive.c */ void packet_receive(struct wireguard_device *wg, struct sk_buff *skb); +void packet_process_queued_handshake_packets(struct work_struct *work); /* send.c */ int packet_send_queue(struct wireguard_peer *peer); void packet_send_keepalive(struct wireguard_peer *peer); -void packet_send_handshake_initiation(struct wireguard_peer *peer); +void packet_queue_handshake_initiation(struct wireguard_peer *peer); +void packet_send_queued_handshakes(struct work_struct *work); void packet_send_handshake_response(struct wireguard_peer *peer); void packet_send_handshake_cookie(struct wireguard_device *wg, struct sk_buff *initiating_skb, void *data, size_t data_len, __le32 sender_index); -void packet_send_handshake_initiation_ratelimited(struct wireguard_peer *peer); - -void packet_queue_send_handshake_initiation(struct wireguard_peer *peer); -void packet_process_queued_handshake_packets(struct work_struct *work); -void packet_send_queued_handshakes(struct work_struct *work); /* data.c */ |