summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/pppoe
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-04-10 10:56:08 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-04-10 10:56:08 +0300
commitfc098b3062badfd802f91241533069cad4886b6f (patch)
treea973fa494e6dde3945710b394044d4b33095495e /accel-pppd/ctrl/pppoe
parent950c13a76e76438d6dd40a8e716ad351e546ed46 (diff)
downloadaccel-ppp-fc098b3062badfd802f91241533069cad4886b6f.tar.gz
accel-ppp-fc098b3062badfd802f91241533069cad4886b6f.zip
pppoe: do not negotiate LCP MRU option if it is larger than 1492
Diffstat (limited to 'accel-pppd/ctrl/pppoe')
-rw-r--r--accel-pppd/ctrl/pppoe/pppoe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/pppoe/pppoe.c b/accel-pppd/ctrl/pppoe/pppoe.c
index a4d1ca92..c130f84e 100644
--- a/accel-pppd/ctrl/pppoe/pppoe.c
+++ b/accel-pppd/ctrl/pppoe/pppoe.c
@@ -341,6 +341,7 @@ static struct pppoe_conn_t *allocate_channel(struct pppoe_serv_t *serv, const ui
conn->ctrl.finished = ppp_finished;
conn->ctrl.terminate = ppp_terminate;
conn->ctrl.max_mtu = min(ETH_DATA_LEN, serv->mtu) - 8;
+ conn->ctrl.no_lcp_mru = conn->ctrl.max_mtu > (ETH_DATA_LEN - 8);
conn->ctrl.type = CTRL_TYPE_PPPOE;
conn->ctrl.ppp = 1;
conn->ctrl.name = "pppoe";