2 * Copyright (c) 1993, 1994, 1997
3 * The Regents of the University of California. All rights reserved.
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
9 * this paragraph in its entirety in the documentation or other materials
10 * provided with the distribution, and (3) all advertising materials mentioning
11 * features or use of this software display the following acknowledgement:
12 * ``This product includes software developed by the University of California,
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
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.
23 * Definitions for information in the LLC header.
28 #define LLC_IG 1 /* Individual / Group */
31 #define LLC_U_POLL 0x10
32 #define LLC_IS_POLL 0x0100
33 #define LLC_XID_FI 0x81
35 #define LLC_U_CMD(u) ((u) & 0xef)
40 #define LLC_SABME 0x6f
45 #define LLC_S_CMD(is) (((is) >> 2) & 0x03)
47 #define LLC_RNR 0x0005
48 #define LLC_REJ 0x0009
50 #define LLC_IS_NR(is) (((is) >> 9) & 0x7f)
51 #define LLC_I_NS(is) (((is) >> 1) & 0x7f)
54 #define LLCSAP_NULL 0x00
57 #define LLCSAP_GLOBAL 0xff
59 #ifndef LLCSAP_8021B_I
60 #define LLCSAP_8021B_I 0x02
62 #ifndef LLCSAP_8021B_G
63 #define LLCSAP_8021B_G 0x03
66 #define LLCSAP_SNA 0x04
69 #define LLCSAP_IP 0x06
71 #ifndef LLCSAP_PROWAYNM
72 #define LLCSAP_PROWAYNM 0x0e
75 #define LLCSAP_8021D 0x42
78 #define LLCSAP_RS511 0x4e
80 #ifndef LLCSAP_ISO8208
81 #define LLCSAP_ISO8208 0x7e
84 #define LLCSAP_PROWAY 0x8e
87 #define LLCSAP_SNAP 0xaa
90 #define LLCSAP_IPX 0xe0
92 #ifndef LLCSAP_NETBEUI
93 #define LLCSAP_NETBEUI 0xf0
96 #define LLCSAP_ISONS 0xfe
100 * PIDs for use with OUI_CISCO.
102 #define PID_CISCO_CDP 0x2000 /* Cisco Discovery Protocol */
103 #define PID_CISCO_VTP 0x2003 /* Cisco VLAN Trunk Protocol */
104 #define PID_CISCO_DTP 0x2004 /* Cisco Dynamic Trunk Protocol */
105 #define PID_CISCO_UDLD 0x0111 /* Unidirectional Link Detection */
106 #define PID_CISCO_PVST 0x010b /* Per VLAN Spanning Tree+ and RPVST+ */
107 #define PID_CISCO_VLANBRIDGE 0x010c /* "VLAN Bridge", according to Wireshark */
110 * PIDs for use with OUI_RFC2684.
112 #define PID_RFC2684_ETH_FCS 0x0001 /* Ethernet, with FCS */
113 #define PID_RFC2684_ETH_NOFCS 0x0007 /* Ethernet, without FCS */
114 #define PID_RFC2684_802_4_FCS 0x0002 /* 802.4, with FCS */
115 #define PID_RFC2684_802_4_NOFCS 0x0008 /* 802.4, without FCS */
116 #define PID_RFC2684_802_5_FCS 0x0003 /* 802.5, with FCS */
117 #define PID_RFC2684_802_5_NOFCS 0x0009 /* 802.5, without FCS */
118 #define PID_RFC2684_FDDI_FCS 0x0004 /* FDDI, with FCS */
119 #define PID_RFC2684_FDDI_NOFCS 0x000a /* FDDI, without FCS */
120 #define PID_RFC2684_802_6_FCS 0x0005 /* 802.6, with FCS */
121 #define PID_RFC2684_802_6_NOFCS 0x000b /* 802.6, without FCS */
122 #define PID_RFC2684_BPDU 0x000e /* BPDUs */