diff options
author | glebius <glebius@FreeBSD.org> | 2013-07-23 10:25:34 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-07-23 10:25:34 +0000 |
commit | 0f5a145fe0fcb6e9907f1458db21e478f874b760 (patch) | |
tree | 2d97fe778a0d29503ea3c8f40afd639aa5c5842c /sys/netgraph | |
parent | 9a3acc6b30529900744f14a99cdbd2fcfad2d49b (diff) | |
download | FreeBSD-src-0f5a145fe0fcb6e9907f1458db21e478f874b760.zip FreeBSD-src-0f5a145fe0fcb6e9907f1458db21e478f874b760.tar.gz |
Add constant for PPP-Max-PayLoad tag.
Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com>
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_pppoe.c | 1 | ||||
-rw-r--r-- | sys/netgraph/ng_pppoe.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c index 818bd7a..6c2ed67 100644 --- a/sys/netgraph/ng_pppoe.c +++ b/sys/netgraph/ng_pppoe.c @@ -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; diff --git a/sys/netgraph/ng_pppoe.h b/sys/netgraph/ng_pppoe.h index d5126cf..6ef81b7 100644 --- a/sys/netgraph/ng_pppoe.h +++ b/sys/netgraph/ng_pppoe.h @@ -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) |