summaryrefslogtreecommitdiffstatshomepage
path: root/src/packets.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-07 20:59:20 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-07 20:59:20 +0100
commit07ced7dfde54492e5493d15874c553042cf255e2 (patch)
tree0cfcfe2493be3a3a255447c6ce1d854ce6e6ec36 /src/packets.h
parentchacha20poly1305: it's just as fast to use these more simple unaligned access helpers (diff)
downloadwireguard-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.h9
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 */