aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/send.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-19 04:41:13 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-31 17:22:49 +0100
commit9d930f5d183da66f0859a2c21cdd5e9919b84db4 (patch)
treea145dcb8d279c3fcca66b32e0f9ac3e2ea8854c8 /src/send.c
parentselftest: initialize mutex in routingtable selftest (diff)
downloadwireguard-monolithic-historical-9d930f5d183da66f0859a2c21cdd5e9919b84db4.tar.xz
wireguard-monolithic-historical-9d930f5d183da66f0859a2c21cdd5e9919b84db4.zip
stats: more robust accounting
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/send.c b/src/send.c
index 05a8472..d9fefc6 100644
--- a/src/send.c
+++ b/src/send.c
@@ -149,6 +149,7 @@ static inline bool skb_encrypt(struct sk_buff *skb, struct noise_keypair *keypai
skb_checksum_help(skb);
/* Only after checksumming can we safely add on the padding at the end and the header. */
+ skb_set_inner_network_header(skb, 0);
header = (struct message_data *)skb_push(skb, sizeof(struct message_data));
header->header.type = cpu_to_le32(MESSAGE_DATA);
header->key_idx = keypair->remote_index;