1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Initialise lcp::his_mru to the ``set mtu'' value if it's less

than DEF_MRU, allowing our interface mtu to be decreased
despite negotiation with the peer.
This commit is contained in:
Brian Somers 1998-09-09 00:03:09 +00:00
parent 9daef026b1
commit 7ac9884afe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38959

View File

@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: lcp.c,v 1.62 1998/08/07 18:42:49 brian Exp $
* $Id: lcp.c,v 1.63 1998/09/04 18:25:59 brian Exp $
*
* TODO:
* o Limit data field length by MRU
@ -233,6 +233,8 @@ lcp_Setup(struct lcp *lcp, int openmode)
lcp->fsm.open_mode = openmode;
lcp->fsm.maxconfig = 10;
lcp->his_mru = lcp->fsm.bundle->cfg.mtu;
if (!lcp->his_mru || lcp->his_mru > DEF_MRU)
lcp->his_mru = DEF_MRU;
lcp->his_mrru = 0;
lcp->his_magic = 0;