If interface drivers had enabled transmit offloading of the payload
authorbluhm <bluhm@openbsd.org>
Mon, 8 Aug 2022 23:00:51 +0000 (23:00 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 8 Aug 2022 23:00:51 +0000 (23:00 +0000)
commitce9d227ca689b46a6aa4422dff4111342cf0c0e5
tree77e481d5aceb1aad483c95ccaa39ee76106f8c3b
parent7fd658f2c3410da8e3bc230ed0a8cb1d8dc863ef
If interface drivers had enabled transmit offloading of the payload
checksum, IPv6 fragments contained invalid checksum.  For fragments
the protocol checksum has to be calculated before fragmentation.
Hardware cannot do this as it is too late.  Do it earlier in software.
tested and OK mbuhl@
sys/netinet6/ip6_output.c