diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-19 04:41:13 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-31 17:22:49 +0100 |
commit | 0c7763e0e5b1bd6c6aa4087f70fb903a8cdf7c23 (patch) | |
tree | 621ae676953e338a9b3f3a6b1953c80638352c9f /src/send.c | |
parent | 1365a28eb2cc1ec0a48c4ed909d23e8db512d329 (diff) |
stats: more robust accounting
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/send.c')
-rw-r--r-- | src/send.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |