Deleted Added
full compact
llc.h (162017) llc.h (172683)
1/*
2 * Copyright (c) 1993, 1994, 1997
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

--- 4 unchanged lines hidden (view full) ---

13 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
14 * the University nor the names of its contributors may be used to endorse
15 * or promote products derived from this software without specific prior
16 * written permission.
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 *
1/*
2 * Copyright (c) 1993, 1994, 1997
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and

--- 4 unchanged lines hidden (view full) ---

13 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
14 * the University nor the names of its contributors may be used to endorse
15 * or promote products derived from this software without specific prior
16 * written permission.
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 * @(#) $Header: /tcpdump/master/tcpdump/llc.h,v 1.17.2.2 2005/09/29 07:40:12 hannes Exp $ (LBL)
21 * @(#) $Header: /tcpdump/master/tcpdump/llc.h,v 1.17.2.4 2007/02/08 07:07:51 guy Exp $ (LBL)
22 */
23
24/*
25 * Definitions for information in the LLC header.
26 */
27
28#define LLC_U_FMT 3
29#define LLC_GSAP 1

--- 9 unchanged lines hidden (view full) ---

39#define LLC_UA 0x63
40#define LLC_DISC 0x43
41#define LLC_DM 0x0f
42#define LLC_SABME 0x6f
43#define LLC_TEST 0xe3
44#define LLC_XID 0xaf
45#define LLC_FRMR 0x87
46
22 */
23
24/*
25 * Definitions for information in the LLC header.
26 */
27
28#define LLC_U_FMT 3
29#define LLC_GSAP 1

--- 9 unchanged lines hidden (view full) ---

39#define LLC_UA 0x63
40#define LLC_DISC 0x43
41#define LLC_DM 0x0f
42#define LLC_SABME 0x6f
43#define LLC_TEST 0xe3
44#define LLC_XID 0xaf
45#define LLC_FRMR 0x87
46
47#define LLC_S_CMD(is) (((is) >> 1) & 0x03)
47#define LLC_S_CMD(is) (((is) >> 2) & 0x03)
48#define LLC_RR 0x0001
49#define LLC_RNR 0x0005
50#define LLC_REJ 0x0009
51
52#define LLC_IS_NR(is) (((is) >> 9) & 0x7f)
53#define LLC_I_NS(is) (((is) >> 1) & 0x7f)
54
55#ifndef LLCSAP_NULL

--- 41 unchanged lines hidden (view full) ---

97#ifndef LLCSAP_ISONS
98#define LLCSAP_ISONS 0xfe
99#endif
100
101/*
102 * PIDs for use with OUI_CISCO.
103 */
104#define PID_CISCO_CDP 0x2000 /* Cisco Discovery Protocol */
48#define LLC_RR 0x0001
49#define LLC_RNR 0x0005
50#define LLC_REJ 0x0009
51
52#define LLC_IS_NR(is) (((is) >> 9) & 0x7f)
53#define LLC_I_NS(is) (((is) >> 1) & 0x7f)
54
55#ifndef LLCSAP_NULL

--- 41 unchanged lines hidden (view full) ---

97#ifndef LLCSAP_ISONS
98#define LLCSAP_ISONS 0xfe
99#endif
100
101/*
102 * PIDs for use with OUI_CISCO.
103 */
104#define PID_CISCO_CDP 0x2000 /* Cisco Discovery Protocol */
105#define PID_CISCO_VTP 0x2003 /* Cisco VLAN Trunk Protocol */
106#define PID_CISCO_DTP 0x2004 /* Cisco Dynamic Trunk Protocol */
105
106/*
107 * PIDs for use with OUI_RFC2684.
108 */
109#define PID_RFC2684_ETH_FCS 0x0001 /* Ethernet, with FCS */
110#define PID_RFC2684_ETH_NOFCS 0x0007 /* Ethernet, without FCS */
111#define PID_RFC2684_802_4_FCS 0x0002 /* 802.4, with FCS */
112#define PID_RFC2684_802_4_NOFCS 0x0008 /* 802.4, without FCS */
113#define PID_RFC2684_802_5_FCS 0x0003 /* 802.5, with FCS */
114#define PID_RFC2684_802_5_NOFCS 0x0009 /* 802.5, without FCS */
115#define PID_RFC2684_FDDI_FCS 0x0004 /* FDDI, with FCS */
116#define PID_RFC2684_FDDI_NOFCS 0x000a /* FDDI, without FCS */
117#define PID_RFC2684_802_6_FCS 0x0005 /* 802.6, with FCS */
118#define PID_RFC2684_802_6_NOFCS 0x000b /* 802.6, without FCS */
119#define PID_RFC2684_BPDU 0x000e /* BPDUs */
107
108/*
109 * PIDs for use with OUI_RFC2684.
110 */
111#define PID_RFC2684_ETH_FCS 0x0001 /* Ethernet, with FCS */
112#define PID_RFC2684_ETH_NOFCS 0x0007 /* Ethernet, without FCS */
113#define PID_RFC2684_802_4_FCS 0x0002 /* 802.4, with FCS */
114#define PID_RFC2684_802_4_NOFCS 0x0008 /* 802.4, without FCS */
115#define PID_RFC2684_802_5_FCS 0x0003 /* 802.5, with FCS */
116#define PID_RFC2684_802_5_NOFCS 0x0009 /* 802.5, without FCS */
117#define PID_RFC2684_FDDI_FCS 0x0004 /* FDDI, with FCS */
118#define PID_RFC2684_FDDI_NOFCS 0x000a /* FDDI, without FCS */
119#define PID_RFC2684_802_6_FCS 0x0005 /* 802.6, with FCS */
120#define PID_RFC2684_802_6_NOFCS 0x000b /* 802.6, without FCS */
121#define PID_RFC2684_BPDU 0x000e /* BPDUs */