svn commit: r288922 - stable/9/sys/netgraph

Alexander Motin mav at FreeBSD.org
Tue Oct 6 14:27:08 UTC 2015


Author: mav
Date: Tue Oct  6 14:27:07 2015
New Revision: 288922
URL: https://svnweb.freebsd.org/changeset/base/288922

Log:
  MFC r253564 (by glebius): Add constant for PPP-Max-PayLoad tag.
  
  Submitted by:   Dmitry Luhtionov <dmitryluhtionov gmail.com>

Modified:
  stable/9/sys/netgraph/ng_pppoe.c
  stable/9/sys/netgraph/ng_pppoe.h
Directory Properties:
  stable/9/   (props changed)
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netgraph/ng_pppoe.c
==============================================================================
--- stable/9/sys/netgraph/ng_pppoe.c	Tue Oct  6 13:50:31 2015	(r288921)
+++ stable/9/sys/netgraph/ng_pppoe.c	Tue Oct  6 14:27:07 2015	(r288922)
@@ -1932,6 +1932,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: stable/9/sys/netgraph/ng_pppoe.h
==============================================================================
--- stable/9/sys/netgraph/ng_pppoe.h	Tue Oct  6 13:50:31 2015	(r288921)
+++ stable/9/sys/netgraph/ng_pppoe.h	Tue Oct  6 14:27:07 2015	(r288922)
@@ -181,6 +181,7 @@ struct ngpppoe_maxp {
 #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)
@@ -197,6 +198,7 @@ struct ngpppoe_maxp {
 #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-stable-9 mailing list