The call to in_proto_cksum_out() is only needed before the packet
authorbluhm <bluhm@openbsd.org>
Mon, 8 May 2023 13:22:13 +0000 (13:22 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 8 May 2023 13:22:13 +0000 (13:22 +0000)
commit003cfddf8c84c7aee6f78fb82bad74a498420de7
tree32fbec5881c0bb301b16ac07b9fce801aedbe10a
parentf583c2e86c604d206f249525cf5e9b334fd7c8ff
The call to in_proto_cksum_out() is only needed before the packet
is passed to ifp->if_output().  The fragment code has its own
checksum calculation and the other paths end in goto bad.
OK claudio@
sys/net/pf.c
sys/netinet/ip_output.c
sys/netinet6/ip6_output.c