cvs commit: src/sys/net if_enc.c src/sys/netipsec ipsec.h
ipsec_input.c ipsec_output.c xform.h xform_ipip.c
Bjoern A. Zeeb
bz at FreeBSD.org
Wed Nov 28 14:33:53 PST 2007
bz 2007-11-28 22:33:53 UTC
FreeBSD src repository
sys/netipsec ipsec.h ipsec_input.c ipsec_output.c
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. ]
Discussed with: thompsa (2007-04-25, basic idea of unifying paths)
Reviewed by: thompsa, gnn
Revision Changes Path
1.7 +74 -11 src/sys/net/if_enc.c
1.14 +9 -2 src/sys/netipsec/ipsec.h
1.20 +21 -2 src/sys/netipsec/ipsec_input.c
1.17 +24 -2 src/sys/netipsec/ipsec_output.c
1.4 +3 -0 src/sys/netipsec/xform.h
1.16 +15 -1 src/sys/netipsec/xform_ipip.c
More information about the cvs-src