K 10 svn:author V 2 bz K 8 svn:date V 27 2008-10-05T17:41:46.712274Z K 7 svn:log V 1010 MFC: rev. 1.7 net/if_enc.c rev. 1.14 netipsec/ipsec.h, 1.20 netipsec/ipsec_input.c rev. 1.17 netipsec/ipsec_output.c rev. 1.4 netipsec/xform.h, 1.16 netipsec/xform_ipip.c SVN r174054, 174055 Add sysctls to if_enc(4) to control whether the firewalls or bpf will see inner and outer headers or just inner or outer headers for incoming and outgoing IPsec packets. This is useful in bpf to not have over long lines for debugging or selcting packets based on the inner headers. It also properly defines the behavior of what the firewalls see. Last but not least it gives you if_enc(4) for IPv6 as well. [ As some auxiliary state was not available in the later input path we save it in the tdbi. That way tcpdump can give a consistent view of either of (authentic,confidential) for both before and after states. ] Note: The defaults were not changed but you may want to do that. See the the man page for more details. PR: kern/127785 Approved by: re (gnn) END