From c1401d47257475f7c1e0b63da7e5e7dfa37cefe0 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 8 Feb 2005 19:52:18 +0000 Subject: 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. --- pcap-bpf.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'pcap-bpf.h') 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 . * - * 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 -- cgit v1.2.3