summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2011-12-28 22:41:56 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2011-12-28 22:41:56 +0000
commit18a92567c3ec32a68f767d646d14c49402d7a35f (patch)
tree73be3eed511ff4caca38280c2b3742f192fab890 /usr.sbin/tcpdump
parent61e79cf85e67208e6c0448d669be289b197d54fe (diff)
Print PPP-Max-Payload headers (for RFC 4638 PPPoe), part of a larger diff
from Matt Dainty. ok haesbaert@
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/print-ppp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/print-ppp.c b/usr.sbin/tcpdump/print-ppp.c
index 4b0926d3adf..d3d9ff2827c 100644
--- a/usr.sbin/tcpdump/print-ppp.c
+++ b/usr.sbin/tcpdump/print-ppp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-ppp.c,v 1.25 2010/01/17 19:56:58 naddy Exp $ */
+/* $OpenBSD: print-ppp.c,v 1.26 2011/12/28 22:41:55 sthen Exp $ */
/*
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
@@ -240,6 +240,7 @@ struct pppoe_header {
#define PPPOE_TAG_AC_COOKIE 0x0104 /* Access Concentratr Cookie */
#define PPPOE_TAG_VENDOR_SPEC 0x0105 /* Vendor Specific */
#define PPPOE_TAG_RELAY_SESSION 0x0110 /* Relay Session Id */
+#define PPPOE_TAG_MAX_PAYLOAD 0x0120 /* RFC 4638 Max Payload */
#define PPPOE_TAG_SERVICE_NAME_ERROR 0x0201 /* Service Name Error */
#define PPPOE_TAG_AC_SYSTEM_ERROR 0x0202 /* Acc. Concentrator Error */
#define PPPOE_TAG_GENERIC_ERROR 0x0203 /* Generic Error */
@@ -884,6 +885,9 @@ pppoe_if_print(ethertype, p, length, caplen)
case PPPOE_TAG_RELAY_SESSION:
printf("Relay-Session");
break;
+ case PPPOE_TAG_MAX_PAYLOAD:
+ printf("PPP-Max-Payload");
+ break;
case PPPOE_TAG_SERVICE_NAME_ERROR:
printf("Service-Name-Error");
break;