Cleanup the error handling in ipsec ipip_output() and consistently
authorbluhm <bluhm@openbsd.org>
Tue, 5 Oct 2021 11:45:26 +0000 (11:45 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 5 Oct 2021 11:45:26 +0000 (11:45 +0000)
commite4b51ed24439364044b5082eea907a9c175c84db
treeacca326981d157b9c63cb6ec298d18e64db1ad54
parent7407a37d8f835fe093253761c1f55fbb93e08267
Cleanup the error handling in ipsec ipip_output() and consistently
goto drop instead of return.  An ENOBUFS should be EINVAL in IPv6
case.  Also use combined packet and byte counter.
OK sthen@ dlg@
sys/netinet/ip_ipip.c
sys/netinet/ip_ipip.h
sys/netinet/ip_ipsp.h
sys/netinet/ipsec_input.c
sys/netinet/ipsec_output.c