diff options
| author | Brian Somers <brian@FreeBSD.org> | 1998-09-09 00:03:09 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1998-09-09 00:03:09 +0000 |
| commit | 7ac9884afe0867db971a3d6ed35342eeaab1b1fd (patch) | |
| tree | 054958990be44c186954aad100beb59d31ea6a44 | |
| parent | 9daef026b1c0b07831c2fda87ed0d1c761282d51 (diff) | |
Notes
| -rw-r--r-- | usr.sbin/ppp/lcp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c index 0a7a1988bdbf..9591aef4a923 100644 --- a/usr.sbin/ppp/lcp.c +++ b/usr.sbin/ppp/lcp.c @@ -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,7 +233,9 @@ lcp_Setup(struct lcp *lcp, int openmode) lcp->fsm.open_mode = openmode; lcp->fsm.maxconfig = 10; - lcp->his_mru = DEF_MRU; + 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; lcp->his_lqrperiod = 0; |
