summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/filter.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-04-24 02:13:34 +0000
committerbrian <brian@FreeBSD.org>2001-04-24 02:13:34 +0000
commitd487445d059fdf0ea10570641cfa7d3fa4430e70 (patch)
treea7caabe22126e4d14d20ad1127f2ee3afc407973 /usr.sbin/ppp/filter.h
parent9c03a8ae91e06e47f0c59996ef0e2300e231e101 (diff)
downloadFreeBSD-src-d487445d059fdf0ea10570641cfa7d3fa4430e70.zip
FreeBSD-src-d487445d059fdf0ea10570641cfa7d3fa4430e70.tar.gz
Handle IP over IP (IPPROTO_IPV4) properly.
We now unwrap IP/IP and apply filter rules to both the outer layer (with ``set filter blah x.x.x.x y.y.y.y ipip'') and to the payload (reinterpreted by the filter rules). ``set log tcp/ip'' will now show both the outer wrapper and the (reinterpreted) payload contents.
Diffstat (limited to 'usr.sbin/ppp/filter.h')
-rw-r--r--usr.sbin/ppp/filter.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/filter.h b/usr.sbin/ppp/filter.h
index b3a5992..75599c3 100644
--- a/usr.sbin/ppp/filter.h
+++ b/usr.sbin/ppp/filter.h
@@ -30,10 +30,11 @@
#endif
#define P_IGMP 5
#ifdef IPPROTO_GRE
-#define P_GRE 6
+#define P_GRE 6
#endif
-#define P_ESP 7
-#define P_AH 8
+#define P_ESP 7
+#define P_AH 8
+#define P_IPIP 9
/* Operations - f_srcop, f_dstop */
#define OP_NONE 0
OpenPOWER on IntegriCloud