Remove code duplication by merging the v4 and v6 input functions
authorbluhm <bluhm@openbsd.org>
Sun, 24 Oct 2021 22:59:47 +0000 (22:59 +0000)
committerbluhm <bluhm@openbsd.org>
Sun, 24 Oct 2021 22:59:47 +0000 (22:59 +0000)
commit64ec6b9f1a4aa9d8d3f7e3ad72c2fc7b0cafa915
tree63dc45ca0e92db01bb52415c7c59b5f970af904b
parent401f201bd4f0a01cb0841fe44c30f9888159ac66
Remove code duplication by merging the v4 and v6 input functions
for ah, esp, and ipcomp.  Move common code into ipsec_protoff()
which finds the offset of the next protocol field in the previous
header.
OK tobhe@
sys/netinet/in_proto.c
sys/netinet/ip_ipsp.h
sys/netinet/ipsec_input.c
sys/netinet6/in6_proto.c