]> The Tcpdump Group git mirrors - tcpdump/commitdiff
change 802.1ag pre-standard codepoint to standard codepoint
authorhannes <hannes>
Mon, 23 Jul 2007 09:01:09 +0000 (09:01 +0000)
committerhannes <hannes>
Mon, 23 Jul 2007 09:01:09 +0000 (09:01 +0000)
ethertype.h
print-ether.c

index 96d6186959dfa14a13f0c1c55f92af853d49771a..f73f7b0fab4d8579ba2e497c41684c7bd6818ef8 100644 (file)
@@ -18,7 +18,7 @@
  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- * @(#) $Header: /tcpdump/master/tcpdump/ethertype.h,v 1.27 2006-10-12 10:26:12 hannes Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/tcpdump/ethertype.h,v 1.28 2007-07-23 09:01:09 hannes Exp $ (LBL)
  */
 
 /*
 #ifndef        ETHERTYPE_VMAN
 #define        ETHERTYPE_VMAN          0x9100 /* Extreme VMAN Protocol */ 
 #endif
+#ifndef        ETHERTYPE_CFM_OLD
+#define        ETHERTYPE_CFM_OLD       0xabcd /* 802.1ag depreciated */
+#endif
 #ifndef        ETHERTYPE_CFM
-#define        ETHERTYPE_CFM           0xabcd /* 802.1ag - Ethertype is not yet assigned */
+#define        ETHERTYPE_CFM           0x8902 /* 802.1ag */
 #endif
 #ifndef        ETHERTYPE_ISO
 #define        ETHERTYPE_ISO           0xfefe  /* nonstandard - used in Cisco HDLC encapsulation */
index 441cee0f1afd5cfb69a1aad7ecbc9e18f7c8a35e..e54c9d4eff37db54d39fc1d12b354d5a1b1fb8fe 100644 (file)
@@ -20,7 +20,7 @@
  */
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ether.c,v 1.103 2006-10-12 10:26:12 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ether.c,v 1.104 2007-07-23 09:01:09 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -74,6 +74,7 @@ const struct tok ethertype_values[] = {
     { ETHERTYPE_LOOPBACK,       "Loopback" },
     { ETHERTYPE_ISO,            "OSI" },
     { ETHERTYPE_GRE_ISO,        "GRE-OSI" },
+    { ETHERTYPE_CFM_OLD,        "CFM (old)" },
     { ETHERTYPE_CFM,            "CFM" },
     { 0, NULL}
 };
@@ -309,6 +310,7 @@ ether_encap_print(u_short ether_type, const u_char *p,
                return (1);
 
        case ETHERTYPE_CFM:
+       case ETHERTYPE_CFM_OLD:
                cfm_print(p, length);
                return (1);