When a struct ipovly needs to be computed and checksummed in in4_cksum(),
authormiod <miod@openbsd.org>
Tue, 1 Feb 2022 15:30:10 +0000 (15:30 +0000)
committermiod <miod@openbsd.org>
Tue, 1 Feb 2022 15:30:10 +0000 (15:30 +0000)
commitfe1ad185fc0ddcddc04025602e8ef7ac6d75d4cc
tree1aa71eedfeaaea5f97cd9236d13e9c8d2f852945
parentdea11c3c946586f436da295fd015b034f8e17735
When a struct ipovly needs to be computed and checksummed in in4_cksum(),
do not bother operating on its first 8 bytes, which will always be zero.

ok visa@
sys/arch/alpha/alpha/in_cksum.c
sys/arch/m88k/m88k/in_cksum.c
sys/arch/powerpc/powerpc/in_cksum.c
sys/arch/sparc64/sparc64/in4_cksum.c
sys/netinet/in4_cksum.c