summaryrefslogtreecommitdiff
path: root/print-atm.c
diff options
context:
space:
mode:
authorhannes <hannes>2006-01-25 13:26:37 +0000
committerhannes <hannes>2006-01-25 13:26:37 +0000
commitf9adbad9ddcba72dd5d6757aacbf93c883287f85 (patch)
tree24d69b1a3c31cea44489f95ffafdad63e12ad115 /print-atm.c
parent023b119fb3155654adca9f9aab7a8daddfb179b1 (diff)
downloadtcpdump-f9adbad9ddcba72dd5d6757aacbf93c883287f85.tar.gz
add support for Cisco style NLPID encapsulation
Diffstat (limited to 'print-atm.c')
-rw-r--r--print-atm.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/print-atm.c b/print-atm.c
index 5fe6891c..1bbc8e08 100644
--- a/print-atm.c
+++ b/print-atm.c
@@ -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.