summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>2001-07-30 18:59:21 +0000
committerbrian <brian@cvs.openbsd.org>2001-07-30 18:59:21 +0000
commitf56c3f519099539eb06b4756d7751de037c1e05e (patch)
treedfa64e1a6d1df9b38a4b6c66fde38b79347fdc80 /usr.sbin
parent524ebd70d4e578deb770cf952ddb3685cffcb3f4 (diff)
If the peer REJects our MRU REQ, stop REQing it -- *EVEN* if we're
doing PPPoE and the default MRU is therefore too big.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/ppp/lcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/lcp.c b/usr.sbin/ppp/ppp/lcp.c
index ece41d67c48..06f6c65881b 100644
--- a/usr.sbin/ppp/ppp/lcp.c
+++ b/usr.sbin/ppp/ppp/lcp.c
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $OpenBSD: lcp.c,v 1.29 2001/07/26 11:36:51 brian Exp $
+ * $OpenBSD: lcp.c,v 1.30 2001/07/30 18:59:20 brian Exp $
*/
#include <sys/param.h>
@@ -408,7 +408,7 @@ LcpSendConfigReq(struct fsm *fp)
fp->link->name, lcp->want_mru, maxmru);
lcp->want_mru = maxmru;
}
- if (!REJECTED(lcp, TY_MRU) || lcp->want_mru < DEF_MRU) {
+ if (!REJECTED(lcp, TY_MRU)) {
ua_htons(&lcp->want_mru, o->data);
INC_LCP_OPT(TY_MRU, 4, o);
}