summaryrefslogtreecommitdiff
path: root/ppp.h
diff options
context:
space:
mode:
authorguy <guy>2000-10-09 01:53:19 +0000
committerguy <guy>2000-10-09 01:53:19 +0000
commitf685a42c3dde025ae99b507f643332f1a4918e8e (patch)
tree3bb9fef80ec80add562cee6704f987c9e6e3a21b /ppp.h
parent46f6e51d596cb47c718baa3959c2e9bb28c5e0c1 (diff)
downloadtcpdump-f685a42c3dde025ae99b507f643332f1a4918e8e.tar.gz
Pull the "linux-include" versions of "slip.h" and "slcompress.h" up to
the top-level directory, remove from them all stuff not needed by tcpdump, include them rather than the system's header files, and get rid of assorted unnecessary include files. This means you don't need to check for "slip.h" when building "print-sl.c", stubbing it out on systems that don't have "slip.h". We also don't need to build the stuff in "print-vjc.c" only on BSD/OS. Use "u_int32_t" and "u_int16_t" rather than "u_int" and "u_short" for structure members in "print-chdlc.c". Move PPP_HDRLEN from "print-ppp.c" to "ppp.h", as per the XXX comment in "print-ppp.c".
Diffstat (limited to 'ppp.h')
-rw-r--r--ppp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ppp.h b/ppp.h
index b33961d2..dfaa5040 100644
--- a/ppp.h
+++ b/ppp.h
@@ -1,4 +1,4 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/ppp.h,v 1.10 2000-08-18 07:44:45 itojun Exp $ (LBL) */
+/* @(#) $Header: /tcpdump/master/tcpdump/ppp.h,v 1.11 2000-10-09 01:53:19 guy Exp $ (LBL) */
/*
* Point to Point Protocol (PPP) RFC1331
*
@@ -15,6 +15,8 @@
* suitability of this software for any purpose. It is provided "as is"
* without express or implied warranty.
*/
+#define PPP_HDRLEN 4 /* length of PPP header */
+
#define PPP_ADDRESS 0xff /* The address byte value */
#define PPP_CONTROL 0x03 /* The control byte value */