factor out the code that does basic sanity checks on ipv4 headers.
authordlg <dlg@openbsd.org>
Wed, 2 Jun 2021 00:09:57 +0000 (00:09 +0000)
committerdlg <dlg@openbsd.org>
Wed, 2 Jun 2021 00:09:57 +0000 (00:09 +0000)
commit29fa630fe21c0b5043b202572185b4041c1659ad
tree89a09a05c5b99f09c2be0dd3ee4cff26ed098487
parent1c9bc1ca0eefe34f76ea0614d0049e30e65e6ff0
factor out the code that does basic sanity checks on ipv4 headers.

this will allow these checks to be reused by bridge (where they're
currently duplicated), veb, and tpmr.

ok bluhm@ sashan@
sys/netinet/in.h
sys/netinet/ip_input.c