diff options
author | brian <brian@FreeBSD.org> | 2006-09-06 06:23:55 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2006-09-06 06:23:55 +0000 |
commit | 66eb15d8c96c17c8167794c5c3541711a68664b4 (patch) | |
tree | 03c8705ae442502dda32496854cf957ae6f813a7 /usr.sbin/ppp | |
parent | 21e453602609114dd397ffe11541b88ac47cbde4 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.sbin/ppp/lcp.c | 3 |
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; |