aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-bpf.h
diff options
context:
space:
mode:
authorguy <guy>2005-02-08 19:52:18 +0000
committerguy <guy>2005-02-08 19:52:18 +0000
commitc1401d47257475f7c1e0b63da7e5e7dfa37cefe0 (patch)
treebee94bb0f4ea573a5f803fc5e5098c2f6b41f04c /pcap-bpf.h
parentd9e0597103de2d54aaf8419478365aeba9d4be05 (diff)
The DLT_LINUX_PPP_WITHDIRECTION is also used for pppd on some BSDs, so
rename it again to DLT_PPP_PPPD, and rename other #defines to match. Add backwards-compatibility #defines of DLT_PPP_WITH_DIRECTION and DLT_LINUX_PPP_WITHDIRECTION for software that used them.
Diffstat (limited to 'pcap-bpf.h')
-rw-r--r--pcap-bpf.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/pcap-bpf.h b/pcap-bpf.h
index 2708a9b..534690b 100644
--- a/pcap-bpf.h
+++ b/pcap-bpf.h
@@ -37,7 +37,7 @@
*
* @(#)bpf.h 7.1 (Berkeley) 5/7/91
*
- * @(#) $Header: /tcpdump/master/libpcap/pcap-bpf.h,v 1.32 2005-01-31 01:47:27 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap-bpf.h,v 1.33 2005-02-08 19:52:18 guy Exp $ (LBL)
*/
/*
@@ -524,7 +524,7 @@ struct bpf_version {
/*
* Another PPP variant as per request from Karsten Keil <kkeil@suse.de>.
*
- * This is used in Linux to allow a kernel socket filter to distinguish
+ * This is used in some OSes to allow a kernel socket filter to distinguish
* between incoming and outgoing packets, on a socket intended to
* supply pppd with outgoing packets so it can do dial-on-demand and
* hangup-on-lack-of-demand; incoming packets are filtered out so they
@@ -535,7 +535,14 @@ struct bpf_version {
* The first byte of the PPP header (0xff03) is modified to accomodate
* the direction - 0x00 = IN, 0x01 = OUT.
*/
-#define DLT_LINUX_PPP_WITHDIRECTION 166
+#define DLT_PPP_PPPD 166
+
+/*
+ * Names for backwards compatibility with older versions of some PPP
+ * software; new software should use DLT_PPP_PPPD.
+ */
+#define DLT_PPP_WITH_DIRECTION DLT_PPP_PPPD
+#define DLT_LINUX_PPP_WITHDIRECTION DLT_PPP_PPPD
/*
* Juniper-private data link type, as per request from