]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ether.c
add basic support for the IEEE Link Discovery Protocol as per 802.1ab
[tcpdump] / print-ether.c
index e54c9d4eff37db54d39fc1d12b354d5a1b1fb8fe..08434b9ae87fa88ad5bb064a2b670f4a31ef5bc7 100644 (file)
@@ -20,7 +20,7 @@
  */
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ether.c,v 1.104 2007-07-23 09:01:09 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ether.c,v 1.105 2007-08-03 11:03:19 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -76,6 +76,7 @@ const struct tok ethertype_values[] = {
     { ETHERTYPE_GRE_ISO,        "GRE-OSI" },
     { ETHERTYPE_CFM_OLD,        "CFM (old)" },
     { ETHERTYPE_CFM,            "CFM" },
+    { ETHERTYPE_LLDP,           "LLDP" },
     { 0, NULL}
 };
 
@@ -314,6 +315,10 @@ ether_encap_print(u_short ether_type, const u_char *p,
                cfm_print(p, length);
                return (1);
 
+       case ETHERTYPE_LLDP:
+               lldp_print(p, length);
+               return (1);
+
         case ETHERTYPE_LOOPBACK:
                 return (1);