svn commit: r253564 - head/sys/netgraph
Gleb Smirnoff
glebius at FreeBSD.org
Tue Jul 23 10:25:35 UTC 2013
Author: glebius
Date: Tue Jul 23 10:25:34 2013
New Revision: 253564
URL: http://svnweb.freebsd.org/changeset/base/253564
Log:
Add constant for PPP-Max-PayLoad tag.
Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com>
Modified:
head/sys/netgraph/ng_pppoe.c
head/sys/netgraph/ng_pppoe.h
Modified: head/sys/netgraph/ng_pppoe.c
==============================================================================
--- head/sys/netgraph/ng_pppoe.c Tue Jul 23 10:23:43 2013 (r253563)
+++ head/sys/netgraph/ng_pppoe.c Tue Jul 23 10:25:34 2013 (r253564)
@@ -1887,6 +1887,7 @@ scan_tags(sessp sp, const struct pppoe_h
case PTT_SRV_ERR:
case PTT_SYS_ERR:
case PTT_GEN_ERR:
+ case PTT_MAX_PAYL:
break;
}
pt = (const struct pppoe_tag*)ptn;
Modified: head/sys/netgraph/ng_pppoe.h
==============================================================================
--- head/sys/netgraph/ng_pppoe.h Tue Jul 23 10:23:43 2013 (r253563)
+++ head/sys/netgraph/ng_pppoe.h Tue Jul 23 10:25:34 2013 (r253564)
@@ -172,6 +172,7 @@ struct ngpppoe_sts {
#define PTT_AC_COOKIE (0x0104)
#define PTT_VENDOR (0x0105)
#define PTT_RELAY_SID (0x0110)
+#define PTT_MAX_PAYL (0x0120) /* PPP-Max-Payload (RFC4638) */
#define PTT_SRV_ERR (0x0201)
#define PTT_SYS_ERR (0x0202)
#define PTT_GEN_ERR (0x0203)
@@ -188,6 +189,7 @@ struct ngpppoe_sts {
#define PTT_AC_COOKIE (0x0401)
#define PTT_VENDOR (0x0501)
#define PTT_RELAY_SID (0x1001)
+#define PTT_MAX_PAYL (0x2001) /* PPP-Max-Payload (RFC4638) */
#define PTT_SRV_ERR (0x0102)
#define PTT_SYS_ERR (0x0202)
#define PTT_GEN_ERR (0x0302)
More information about the svn-src-head
mailing list