summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-07 11:52:02 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-07 11:52:02 +0100
commit8712fea4b28eb97973f766b66396bfb3056ac506 (patch)
treefdb4410d00579505d22f836841e313ff298e50db
parent8ab6f188f5dff1e173a85d05f443622029b5ac37 (diff)
socket: use more reasonable skb padding
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/socket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.h b/src/socket.h
index d7c9df4..36cb4ed 100644
--- a/src/socket.h
+++ b/src/socket.h
@@ -10,7 +10,7 @@
struct wireguard_device;
-#define SKB_HEADER_LEN (max(sizeof(struct iphdr), sizeof(struct ipv6hdr)) + sizeof(struct udphdr) + ETH_HLEN + VLAN_HLEN + 16)
+#define SKB_HEADER_LEN (max(sizeof(struct iphdr), sizeof(struct ipv6hdr)) + sizeof(struct udphdr) + NET_SKB_PAD)
int socket_init(struct wireguard_device *wg);
void socket_uninit(struct wireguard_device *wg);