if_ipsec(4): protect against user supplying unknown address family
if_ipsec(4): handle situations where there are no policy or SADB entry for if
Both issues were found by doing approximately the following sequence of commands on IPv4-only kernel:
ifconfig ipsec0 create reqid 0 ifconfig ipsec0 inet tunnel 1.1.1.2 1.1.1.1 ifconfig ipsec0 up ifconfig ipsec0 reqid 0
Sponsored by: NVIDIA Networking