Move setting ipsec mtu into a function. The NULL and invalid check
authorbluhm <bluhm@openbsd.org>
Tue, 5 Oct 2021 11:34:34 +0000 (11:34 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 5 Oct 2021 11:34:34 +0000 (11:34 +0000)
commit7407a37d8f835fe093253761c1f55fbb93e08267
treefd6ea6e80efe568b6bea4097229a55112a10ce8a
parente873b9ec2c38ea35a6a54bb85114213d97990edb
Move setting ipsec mtu into a function.  The NULL and invalid check
in ipsec_common_ctlinput() is not necessary, the loop in ipsec_set_mtu()
does that anyway.  udpencap_ctlinput() did not work for bundled SA,
this also needs the loop in ipsec_set_mtu().
OK sthen@
sys/netinet/ip_ipsp.h
sys/netinet/ipsec_input.c