summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannes <hannes>2004-10-19 15:27:55 +0000
committerhannes <hannes>2004-10-19 15:27:55 +0000
commit6a0627fbadb35cce3cfb7800bd3f5177cd51e8f3 (patch)
tree6dbd250e858a365ca271148af4580db2c6b22af5
parent570cdb3f162ad9b62ebb02f86ef8ab9618e9ffcd (diff)
downloadtcpdump-6a0627fbadb35cce3cfb7800bd3f5177cd51e8f3.tar.gz
add PPP to the ISO nlpid printer
-rwxr-xr-xnlpid.c3
-rw-r--r--nlpid.h3
-rw-r--r--print-isoclns.c6
3 files changed, 9 insertions, 3 deletions
diff --git a/nlpid.c b/nlpid.c
index a2d6d245..47ebb535 100755
--- a/nlpid.c
+++ b/nlpid.c
@@ -15,7 +15,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/nlpid.c,v 1.3 2004-10-18 12:09:20 hannes Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/nlpid.c,v 1.4 2004-10-19 15:27:55 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -38,6 +38,7 @@ struct tok nlpid_values[] = {
{ NLPID_IDRP, "IDRP" },
{ NLPID_MFR, "FRF.15" },
{ NLPID_IP, "IPv4" },
+ { NLPID_PPP, "PPP" },
{ NLPID_X25_ESIS, "X25 ES-IS" },
{ NLPID_IP6, "IPv6" },
{ 0, NULL }
diff --git a/nlpid.h b/nlpid.h
index d5b353de..31f6b66d 100644
--- a/nlpid.h
+++ b/nlpid.h
@@ -1,4 +1,4 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/nlpid.h,v 1.3 2004-10-18 12:09:20 hannes Exp $ (LBL) */
+/* @(#) $Header: /tcpdump/master/tcpdump/nlpid.h,v 1.4 2004-10-19 15:27:55 hannes Exp $ (LBL) */
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code
@@ -27,5 +27,6 @@ extern struct tok nlpid_values[];
#define NLPID_IDRP 0x85
#define NLPID_MFR 0xb1 /* FRF.15 */
#define NLPID_IP 0xcc
+#define NLPID_PPP 0xcf
#define NLPID_X25_ESIS 0x8a
#define NLPID_IP6 0x8e
diff --git a/print-isoclns.c b/print-isoclns.c
index c3eb4419..f134ed7a 100644
--- a/print-isoclns.c
+++ b/print-isoclns.c
@@ -26,7 +26,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.123 2004-10-18 12:34:36 hannes Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.124 2004-10-19 15:27:55 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -528,6 +528,10 @@ void isoclns_print(const u_int8_t *p, u_int length, u_int caplen)
break;
#endif
+ case NLPID_PPP:
+ ppp_print(p+1, length-1);
+ break;
+
default:
(void)printf(", length: %u", length);
if (caplen > 1)