Put checksum flags in bpf_hdr to use them in userland dhcpleased.
authorjan <jan@openbsd.org>
Fri, 26 Jan 2024 21:14:08 +0000 (21:14 +0000)
committerjan <jan@openbsd.org>
Fri, 26 Jan 2024 21:14:08 +0000 (21:14 +0000)
commit2b86dc956b4b9978b8b0aa69e3eecb564f708848
treeab5ad86bf70f112903985ec29142ffca4a69dd3b
parentff34f919ebb204f5b5d2b508224aa1161b4cda85
Put checksum flags in bpf_hdr to use them in userland dhcpleased.

Thus, dhcpleased accept non-calculated checksums which were verified by
hardware/hypervisor.

With tweaks from dlg@

ok bluhm@
mkay tobhe@
sbin/dhcpleased/dhcpleased.h
sbin/dhcpleased/engine.c
sbin/dhcpleased/frontend.c
sys/net/bpf.c
sys/net/bpf.h