aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/messages.h
diff options
context:
space:
mode:
authorLuis Ressel <aranea@aixah.de>2018-01-13 10:53:52 +0100
committerLuis Ressel <aranea@aixah.de>2018-01-13 10:53:52 +0100
commit2b1007bf96b5744259ecfa738d04e67221b79f10 (patch)
treeeb6506284311aa1b04e6e19bf4654cd140c9b098 /src/messages.h
parentexternal-tests: add python implementation (diff)
downloadwireguard-monolithic-historical-2b1007bf96b5744259ecfa738d04e67221b79f10.tar.xz
wireguard-monolithic-historical-2b1007bf96b5744259ecfa738d04e67221b79f10.zip
WIP: Automatically update PMTU for tunneled destinationslr/pmtu
Diffstat (limited to '')
-rw-r--r--src/messages.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/messages.h b/src/messages.h
index e221b51..5fa4acd 100644
--- a/src/messages.h
+++ b/src/messages.h
@@ -119,7 +119,9 @@ enum message_alignments {
MESSAGE_MINIMUM_LENGTH = message_data_len(0)
};
-#define SKB_HEADER_LEN (max(sizeof(struct iphdr), sizeof(struct ipv6hdr)) + sizeof(struct udphdr) + NET_SKB_PAD)
+#define WG_L4_HDR_LEN (max(sizeof(struct iphdr), sizeof(struct ipv6hdr)) + sizeof(struct udphdr))
+#define WG_L5_HDR_LEN (WG_L4_HDR_LEN + MESSAGE_MINIMUM_LENGTH)
+#define SKB_HEADER_LEN (WG_L4_HDR_LEN + NET_SKB_PAD)
#define DATA_PACKET_HEAD_ROOM ALIGN(sizeof(struct message_data) + SKB_HEADER_LEN, 4)
enum {