diff options
author | Artem Glazychev <artem.glazychev@xored.com> | 2020-09-10 13:13:29 +0700 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-09-16 09:45:13 +0000 |
commit | 911d7563cb7b6c2c6168c0d4a041dd82dcb80fb9 (patch) | |
tree | 9850bd413cf0a39585a7364dd2afac21cfc5c132 /src/plugins/wireguard/wireguard_send.h | |
parent | 58db34c2ca491cb949ab046cccbd73be14b90647 (diff) |
wireguard: fix handshake procedure
Type: fix
Change-Id: I96e8c5c9c792b1d9aefd39ce3e240d220827b7d1
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
(cherry picked from commit cf527882e2fe49eda108cd63af175431222beebe)
Diffstat (limited to 'src/plugins/wireguard/wireguard_send.h')
-rwxr-xr-x | src/plugins/wireguard/wireguard_send.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/wireguard/wireguard_send.h b/src/plugins/wireguard/wireguard_send.h index 8f5e7ab8765..4ea1f6effea 100755 --- a/src/plugins/wireguard/wireguard_send.h +++ b/src/plugins/wireguard/wireguard_send.h @@ -26,8 +26,8 @@ always_inline void ip4_header_set_len_w_chksum (ip4_header_t * ip4, u16 len) { ip_csum_t sum = ip4->checksum; - u8 old = ip4->length; - u8 new = len; + u16 old = ip4->length; + u16 new = len; sum = ip_csum_update (sum, old, new, ip4_header_t, length); ip4->checksum = ip_csum_fold (sum); |