From: hannes Date: Wed, 25 Jan 2006 13:27:24 +0000 (+0000) Subject: add support for Cisco style NLPID encapsulation X-Git-Tag: tcpdump-3.9.6~31 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/794bee752fde8589f1d813d8c525185558cbbba0?ds=inline add support for Cisco style NLPID encapsulation --- diff --git a/print-atm.c b/print-atm.c index 57f5f10b..c6e5d704 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.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.