Skip to content

Commit 6a0627f

Browse files
author
hannes
committed
add PPP to the ISO nlpid printer
1 parent 570cdb3 commit 6a0627f

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

nlpid.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#ifndef lint
1717
static const char rcsid[] _U_ =
18-
"@(#) $Header: /tcpdump/master/tcpdump/nlpid.c,v 1.3 2004-10-18 12:09:20 hannes Exp $ (LBL)";
18+
"@(#) $Header: /tcpdump/master/tcpdump/nlpid.c,v 1.4 2004-10-19 15:27:55 hannes Exp $ (LBL)";
1919
#endif
2020

2121
#ifdef HAVE_CONFIG_H
@@ -38,6 +38,7 @@ struct tok nlpid_values[] = {
3838
{ NLPID_IDRP, "IDRP" },
3939
{ NLPID_MFR, "FRF.15" },
4040
{ NLPID_IP, "IPv4" },
41+
{ NLPID_PPP, "PPP" },
4142
{ NLPID_X25_ESIS, "X25 ES-IS" },
4243
{ NLPID_IP6, "IPv6" },
4344
{ 0, NULL }

nlpid.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* @(#) $Header: /tcpdump/master/tcpdump/nlpid.h,v 1.3 2004-10-18 12:09:20 hannes Exp $ (LBL) */
1+
/* @(#) $Header: /tcpdump/master/tcpdump/nlpid.h,v 1.4 2004-10-19 15:27:55 hannes Exp $ (LBL) */
22
/*
33
* Redistribution and use in source and binary forms, with or without
44
* modification, are permitted provided that: (1) source code
@@ -27,5 +27,6 @@ extern struct tok nlpid_values[];
2727
#define NLPID_IDRP 0x85
2828
#define NLPID_MFR 0xb1 /* FRF.15 */
2929
#define NLPID_IP 0xcc
30+
#define NLPID_PPP 0xcf
3031
#define NLPID_X25_ESIS 0x8a
3132
#define NLPID_IP6 0x8e

print-isoclns.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#ifndef lint
2828
static const char rcsid[] _U_ =
29-
"@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.123 2004-10-18 12:34:36 hannes Exp $ (LBL)";
29+
"@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.124 2004-10-19 15:27:55 hannes Exp $ (LBL)";
3030
#endif
3131

3232
#ifdef HAVE_CONFIG_H
@@ -528,6 +528,10 @@ void isoclns_print(const u_int8_t *p, u_int length, u_int caplen)
528528
break;
529529
#endif
530530

531+
case NLPID_PPP:
532+
ppp_print(p+1, length-1);
533+
break;
534+
531535
default:
532536
(void)printf(", length: %u", length);
533537
if (caplen > 1)

0 commit comments

Comments
 (0)