aboutsummaryrefslogtreecommitdiffstats
path: root/bridged_pids.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-01-10 09:07:35 +0000
committerGuy Harris <guy@alum.mit.edu>2001-01-10 09:07:35 +0000
commit039bd984c0791b345ef12806a24cb5c44cf0e2f7 (patch)
tree8ada65a0f30fde1bc3c7eb46db802a42af046f93 /bridged_pids.h
parent2a8ac23dd2b55b88c264312fce9a65f895f71bdd (diff)
Make the stuff to handle SNAP frames (OUI, PID, payload) a routine of
its own; it's used not only by LLC, but by Frame Relay with RFC 2427 and ATM with RFC 2684. Support for RFC 2427-encapsulation Frame Relay packets, from Paul Ionescu. Get rid of the CISCO_IP PPP protocol type - Cisco HDLC uses, in most cases, Ethernet packet types, so use ETHERTYPE_IP instead (they're both 0x0800). svn path=/trunk/; revision=2854
Diffstat (limited to 'bridged_pids.h')
-rw-r--r--bridged_pids.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/bridged_pids.h b/bridged_pids.h
new file mode 100644
index 0000000000..a0b331075e
--- /dev/null
+++ b/bridged_pids.h
@@ -0,0 +1,51 @@
+/* bridged_pids.h
+ * Definitions of protocol IDs for the 00-80-C2 OUI, used for
+ * bridging various networks over ATM (RFC 2684) or Frame Relay (RFC 2427).
+ *
+ * $Id: bridged_pids.h,v 1.1 2001/01/10 09:07:35 guy Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 - 2000 Gerald Combs
+ *
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __BRIDGED_PID_H__
+#define __BRIDGED_PID_H__
+
+#define BPID_ETH_WITH_FCS 0x0001 /* 802.3/Ethernet with preserved FCS */
+#define BPID_ETH_WITHOUT_FCS 0x0007 /* 802.3/Ethernet without preserved FCS */
+
+#define BPID_802_4_WITH_FCS 0x0002 /* 802.4 with preserved FCS */
+#define BPID_802_4_WITHOUT_FCS 0x0008 /* 802.4 without preserved FCS */
+
+#define BPID_802_5_WITH_FCS 0x0003 /* 802.5 with preserved FCS */
+#define BPID_802_5_WITHOUT_FCS 0x0009 /* 802.5 without preserved FCS */
+
+#define BPID_FDDI_WITH_FCS 0x0004 /* FDDI with preserved FCS */
+#define BPID_FDDI_WITHOUT_FCS 0x000A /* FDDI without preserved FCS */
+
+#define BPID_802_6_WITH_FCS 0x0005 /* 802.6 with preserved FCS */
+#define BPID_802_6_WITHOUT_FCS 0x000B /* 802.6 without preserved FCS */
+
+#define BPID_FRAGMENTS 0x000D
+
+#define BPID_BPDU 0x000E /* 802.1(d) or 802.1(g) BPDUs */
+
+#define BPID_SR_BPDU 0x000F /* Source Routing BPDUs */
+
+#endif