View | Details | Raw Unified | Return to bug 14330
Collapse All | Expand All

(-)/usr/src/contrib/tcpdump/ppp.h (-13 / +13 lines)
Lines 15-35 Link Here
15
 * suitability of this software for any purpose.  It is provided "as is"
15
 * suitability of this software for any purpose.  It is provided "as is"
16
 * without express or implied warranty.
16
 * without express or implied warranty.
17
 */
17
 */
18
#define PPP_ADDRESS	0xff	/* The address byte value */
18
#define PPP_ADDRESS_VAL	0xff	/* The address byte value */
19
#define PPP_CONTROL	0x03	/* The control byte value */
19
#define PPP_CONTROL_VAL	0x03	/* The control byte value */
20
20
21
/* Protocol numbers */
21
/* Protocol numbers */
22
#define PPP_IP		0x0021	/* Raw IP */
22
#define PPP_IP		0x21	/* Raw IP */
23
#define PPP_OSI		0x0023	/* OSI Network Layer */
23
#define PPP_OSI		0x23	/* OSI Network Layer */
24
#define PPP_NS		0x0025	/* Xerox NS IDP */
24
#define PPP_NS		0x25	/* Xerox NS IDP */
25
#define PPP_DECNET	0x0027	/* DECnet Phase IV */
25
#define PPP_DECNET	0x27	/* DECnet Phase IV */
26
#define PPP_APPLE	0x0029	/* Appletalk */
26
#define PPP_APPLE	0x29	/* Appletalk */
27
#define PPP_IPX		0x002b	/* Novell IPX */
27
#define PPP_IPX		0x2b	/* Novell IPX */
28
#define PPP_VJC		0x002d	/* Van Jacobson Compressed TCP/IP */
28
#define PPP_VJC		0x2d	/* Van Jacobson Compressed TCP/IP */
29
#define PPP_VJNC	0x002f	/* Van Jacobson Uncompressed TCP/IP */
29
#define PPP_VJNC	0x2f	/* Van Jacobson Uncompressed TCP/IP */
30
#define PPP_BRPDU	0x0031	/* Bridging PDU */
30
#define PPP_BRPDU	0x31	/* Bridging PDU */
31
#define PPP_STII	0x0033	/* Stream Protocol (ST-II) */
31
#define PPP_STII	0x33	/* Stream Protocol (ST-II) */
32
#define PPP_VINES	0x0035	/* Banyan Vines */
32
#define PPP_VINES	0x35	/* Banyan Vines */
33
33
34
#define PPP_HELLO	0x0201	/* 802.1d Hello Packets */
34
#define PPP_HELLO	0x0201	/* 802.1d Hello Packets */
35
#define PPP_LUXCOM	0x0231	/* Luxcom */
35
#define PPP_LUXCOM	0x0231	/* Luxcom */
(-)/usr/src/contrib/tcpdump/print-ppp.c (-1 / +1 lines)
Lines 571-577 Link Here
571
	snapend = p + caplen;
571
	snapend = p + caplen;
572
	hdrlength = 0;
572
	hdrlength = 0;
573
573
574
	if (p[0] == PPP_ADDRESS && p[1] == PPP_CONTROL) {
574
	if (p[0] == PPP_ADDRESS_VAL && p[1] == PPP_CONTROL_VAL) {
575
		if (eflag) 
575
		if (eflag) 
576
			printf("%02x %02x ", p[0], p[1]);
576
			printf("%02x %02x ", p[0], p[1]);
577
		p += 2;
577
		p += 2;

Return to bug 14330