Add constant for PPP-Max-PayLoad tag.

Submitted by:	Dmitry Luhtionov <dmitryluhtionov gmail.com>
This commit is contained in:
Gleb Smirnoff 2013-07-23 10:25:34 +00:00
parent e2a74d7247
commit 5c6d5d5598
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253564
2 changed files with 3 additions and 0 deletions

View File

@ -1887,6 +1887,7 @@ scan_tags(sessp sp, const struct pppoe_hdr* ph)
case PTT_SRV_ERR:
case PTT_SYS_ERR:
case PTT_GEN_ERR:
case PTT_MAX_PAYL:
break;
}
pt = (const struct pppoe_tag*)ptn;

View File

@ -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)