Introduce ipsec_output_cb() to merge duplicate code and account for
authormpi <mpi@openbsd.org>
Thu, 12 Jul 2018 15:51:50 +0000 (15:51 +0000)
committermpi <mpi@openbsd.org>
Thu, 12 Jul 2018 15:51:50 +0000 (15:51 +0000)
commit7ced204ee2fdf209a5f0c84ecd143e75b272f616
tree48e523f60f4df5f553df237869abd21a75ab3a06
parentf7ff493b267e1377052999cf9ca3903ec9e1a23a
Introduce ipsec_output_cb() to merge duplicate code and account for
dropped packets in the output path.

While here fix a memory leak when compression is not needed w/ IPcomp.

ok markus@
sys/netinet/ip_ah.c
sys/netinet/ip_esp.c
sys/netinet/ip_ipcomp.c
sys/netinet/ip_ipsp.h
sys/netinet/ip_output.c
sys/netinet/ipsec_output.c
sys/netinet6/ip6_output.c