From 66eb15d8c96c17c8167794c5c3541711a68664b4 Mon Sep 17 00:00:00 2001 From: brian Date: Wed, 6 Sep 2006 06:23:55 +0000 Subject: 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. --- usr.sbin/ppp/lcp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr.sbin/ppp/lcp.c') 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; -- cgit v1.1