]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Bugfix GlobalProtect ESP magic pings over Legacy IP
authorDaniel Lenski <dlenski@gmail.com>
Thu, 20 May 2021 22:53:25 +0000 (15:53 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Thu, 20 May 2021 22:56:23 +0000 (15:56 -0700)
commit200de700b70d00c6c302b004d27bcadbbf133ca6
tree4dff8ac3ba8cba752a80fd14eefda8ff6ae99458
parent066b0053ba975257ad431aaf6353021172a35bc1
Bugfix GlobalProtect ESP magic pings over Legacy IP

GlobalProtect IPv6 support was added in
https://gitlab.com/openconnect/openconnect/-/merge_requests/188, and
specifically support for initiating an ESP connection via ICMPv6 "magic
pings" in specifically 5b98b62883216cf9306f06c6b3c9dde81bcfe789.

Getting the ICMPv6 packets to have correct checksums was quite tricky (see
commit notes) and the commit was revised several times.

Somehow we managed to remove the pre-existing code to compute the checksum
correctly in the case of ICMPv4 "magic pings", leaving behind an ICMPv4
checksum that's always zero (and thus rejected by the server, and never
correctly initiates a connection).

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
gpst.c