summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/lcp.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2006-09-06 06:23:55 +0000
committerbrian <brian@FreeBSD.org>2006-09-06 06:23:55 +0000
commit66eb15d8c96c17c8167794c5c3541711a68664b4 (patch)
tree03c8705ae442502dda32496854cf957ae6f813a7 /usr.sbin/ppp/lcp.c
parent21e453602609114dd397ffe11541b88ac47cbde4 (diff)
downloadFreeBSD-src-66eb15d8c96c17c8167794c5c3541711a68664b4.zip
FreeBSD-src-66eb15d8c96c17c8167794c5c3541711a68664b4.tar.gz
If the peer REJects our MRU request and that request is for a value
less than the current MTU, set our mtu to the value requested.
Diffstat (limited to 'usr.sbin/ppp/lcp.c')
-rw-r--r--usr.sbin/ppp/lcp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c
index d0c15fc..cf75718 100644
--- a/usr.sbin/ppp/lcp.c
+++ b/usr.sbin/ppp/lcp.c
@@ -792,6 +792,9 @@ LcpDecodeConfig(struct fsm *fp, u_char *cp, u_char *end, int mode_type,
break;
case MODE_REJ:
lcp->his_reject |= (1 << opt->hdr.id);
+ /* Set the MTU to what we want anyway - the peer won't care! */
+ if (lcp->his_mru > lcp->want_mru)
+ lcp->his_mru = lcp->want_mru;
break;
}
break;
OpenPOWER on IntegriCloud