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

index 57f5f10b56c09b850b7f922b3bd07e335740e3cf..c6e5d704790b52c3a0cf87caa1af54c02c106a28 100644 (file)
@@ -20,7 +20,7 @@
  */
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-atm.c,v 1.38.2.5 2006-01-22 10:23:57 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-atm.c,v 1.38.2.6 2006-01-25 13:27:24 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.