Simplex interface sends packet back without hardware checksum
authorbluhm <bluhm@openbsd.org>
Sat, 6 Feb 2021 13:15:37 +0000 (13:15 +0000)
committerbluhm <bluhm@openbsd.org>
Sat, 6 Feb 2021 13:15:37 +0000 (13:15 +0000)
commit300935e6f8e60f9033e769636612c03ac1878c1d
treeedca019c23af4b61ee8ff517b1a09bc8343bbdd4
parentbdd9f00a15957d75275efd23fb615bc0daccf14f
Simplex interface sends packet back without hardware checksum
offloading.  The checksum must be calculated in software.  Use the
same condition in ether_resolve() to send the broadcast packet back
to the stack and in in_ifcap_cksum() to force software checksumming.
This fixes regress/sys/kern/sosplice/loop.
OK procter@
sys/net/if_ethersubr.c
sys/netinet/ip_output.c