Commit 575ae537 authored by Nikolay Martynov's avatar Nikolay Martynov Committed by David Woodhouse

IPv6 packet size field doesn't include header size, take this into account

IPv6 packet's 'length' field contains length of payload excluding headers.
Header's length (40) needs to be added to that to get complete packet length.
This patch seems to be fixing random VPN drops.
Signed-off-by: default avatarNikolay Martynov <>
Signed-off-by: default avatarDavid Woodhouse <>
parent 881eb286
......@@ -1002,7 +1002,7 @@ int oncp_mainloop(struct openconnect_info *vpninfo, int *timeout)
iplen = load_be16(vpninfo->cstp_pkt->data + 2);
case 6:
iplen = load_be16(vpninfo->cstp_pkt->data + 4);
iplen = load_be16(vpninfo->cstp_pkt->data + 4) + 40;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment