Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Oct 2015 14:27:07 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r288922 - stable/9/sys/netgraph
Message-ID:  <201510061427.t96ER74c002620@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510061427.t96ER74c002620>