]> The Tcpdump Group git mirrors - tcpdump/commitdiff
add support for Cisco style NLPID encapsulation
authorhannes <hannes>
Wed, 25 Jan 2006 13:26:37 +0000 (13:26 +0000)
committerhannes <hannes>
Wed, 25 Jan 2006 13:26:37 +0000 (13:26 +0000)
print-atm.c

index 5fe6891c7ea96f96a44fadb2fbbb993f228c85bb..1bbc8e0813dec29d3784ca2ad19eecdaf17420e7 100644 (file)
@@ -20,7 +20,7 @@
  */
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-atm.c,v 1.43 2006-01-22 10:23:09 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-atm.c,v 1.44 2006-01-25 13:26:37 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -142,6 +142,14 @@ atm_if_print(const struct pcap_pkthdr *h, const u_char *p)
                return (caplen);
        }
 
+        /* Cisco Style NLPID ? */
+        if (*p == LLC_UI) {
+            if (eflag)
+                printf("CNLPID ");
+            isoclns_print(p+1, length-1, caplen-1);
+            return hdrlen;
+        }
+
        /*
         * Extract the presumed LLC header into a variable, for quick
         * testing.