From a8b09ba5c0fdb5c80f20536bac194855edb21dad Mon Sep 17 00:00:00 2001
From: Maxime Bizon <mbizon@freebox.fr>
Date: Thu, 16 Jan 2020 01:05:59 +0100
Subject: [PATCH 12/18] pppd: remove mtu lowering when using MPPE

create mismatch between announced MTU (1400) and effective (1396).
---
 pppd/ccp.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/pppd/ccp.c b/pppd/ccp.c
index b522d31..56a6de0 100644
--- a/pppd/ccp.c
+++ b/pppd/ccp.c
@@ -1172,7 +1172,6 @@ ccp_reqci(f, p, lenp, dont_nak)
 		MPPE_OPTS_TO_CI(ho->mppe, &p[2]);
 		if (newret == CONFACK) {
 		    u_char opt_buf[CILEN_MPPE + MPPE_MAX_KEY_LEN];
-		    int mtu;
 
 		    BCOPY(p, opt_buf, CILEN_MPPE);
 		    BCOPY(mppe_send_key, &opt_buf[CILEN_MPPE],
@@ -1185,16 +1184,6 @@ ccp_reqci(f, p, lenp, dont_nak)
 			newret = CONFREJ;
 			break;
 		    }
-		    /*
-		     * We need to decrease the interface MTU by MPPE_PAD
-		     * because MPPE frames **grow**.  The kernel [must]
-		     * allocate MPPE_PAD extra bytes in xmit buffers.
-		     */
-		    mtu = netif_get_mtu(f->unit);
-		    if (mtu)
-			netif_set_mtu(f->unit, mtu - MPPE_PAD);
-		    else
-			newret = CONFREJ;
 		}
 
 		/*
-- 
2.17.1

