summaryrefslogtreecommitdiff
path: root/print-chdlc.c
diff options
context:
space:
mode:
authorhannes <hannes>2002-10-18 20:08:34 +0000
committerhannes <hannes>2002-10-18 20:08:34 +0000
commitfff180e0747b5e0854b49f19eb58617d8c63d596 (patch)
treea6bcedce578e85c1bf7e73a9fe5a7ce422ae22a5 /print-chdlc.c
parentd504292ba8088b1686b0fed2066df6a99ece23d3 (diff)
downloadtcpdump-fff180e0747b5e0854b49f19eb58617d8c63d596.tar.gz
MPLS support for CHDLC
Diffstat (limited to 'print-chdlc.c')
-rw-r--r--print-chdlc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/print-chdlc.c b/print-chdlc.c
index e8e2f72f..b416991c 100644
--- a/print-chdlc.c
+++ b/print-chdlc.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.20 2002-10-06 16:35:45 hannes Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-chdlc.c,v 1.21 2002-10-18 20:08:34 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -115,6 +115,10 @@ chdlc_print(register const u_char *p, u_int length, u_int caplen)
chdlc_cdp_print((const u_char *)ip, length);
break;
#endif
+ case ETHERTYPE_MPLS:
+ case ETHERTYPE_MPLS_MULTI:
+ mpls_print((const u_char *)(ip), length);
+ break;
case ETHERTYPE_ISO:
/* is the fudge byte set ? if yes lets skip a byte */
if (*(p+CHDLC_HDRLEN) == 0)