diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-07 11:52:02 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-07 11:52:02 +0100 |
commit | a487d599820ef6b2e053f676883248898a532b6a (patch) | |
tree | 9f21cc30193503d5a5474f9af3e397eb86421c40 /src/socket.h | |
parent | data: only uses kmem_cache for parallism (diff) | |
download | wireguard-monolithic-historical-a487d599820ef6b2e053f676883248898a532b6a.tar.xz wireguard-monolithic-historical-a487d599820ef6b2e053f676883248898a532b6a.zip |
socket: use more reasonable skb padding
Diffstat (limited to 'src/socket.h')
-rw-r--r-- | src/socket.h | 2 |
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); |