source:
npl/internetserver/poptop_ppp/patches/mppe_lower_mtu.diff
@
c5c522c
Last change on this file since c5c522c was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 2.5 KB |
-
ppp-2.4.3/pppd/ccp.c
67 67 */ 68 68 #ifdef MPPE 69 69 bool refuse_mppe_stateful = 1; /* Allow stateful mode? */ 70 bool mppe_lower_mtu = 1; /* Set to 0 to disable dropping the MTU by 4 */ 70 71 #endif 71 72 72 73 static option_t ccp_option_list[] = { … … 156 157 "allow MPPE stateful mode", OPT_PRIO }, 157 158 { "nomppe-stateful", o_bool, &refuse_mppe_stateful, 158 159 "disallow MPPE stateful mode", OPT_PRIO | 1 }, 160 161 /* Option to avoid lowering our MTU by 4 (as should be done) to avoid 162 * breakage with devices that don't handle PMTUD 163 */ 164 { "mppe-lower-mtu", o_bool, &mppe_lower_mtu, 165 "lower the MTU by 4 bytes for MPPE connections", OPT_PRIO | 1 }, 166 { "nomppe-lower-mtu", o_bool, &mppe_lower_mtu, 167 "don't lower the MTU by 4 bytes for MPPE connections", OPT_PRIO }, 168 159 169 #endif /* MPPE */ 160 170 161 171 { NULL } … … 1185 1195 * allocate MPPE_PAD extra bytes in xmit buffers. 1186 1196 */ 1187 1197 mtu = netif_get_mtu(f->unit); 1188 if (mtu) 1189 netif_set_mtu(f->unit, mtu - MPPE_PAD); 1190 else 1198 if (mtu) { 1199 /* Dropping the MTU seems to break Path MTU discovery 1200 * particularly where load-balancers are involved. 1201 * Not dropping the MTU may mean the occasional packet 1202 * goes unencrypted due to them being 4 bytes larger 1203 * and CCP thinking it's not worth encrypting. 1204 */ 1205 if (mppe_lower_mtu) 1206 netif_set_mtu(f->unit, mtu - MPPE_PAD); 1207 } else 1191 1208 newret = CONFREJ; 1192 1209 } 1193 1210 -
ppp-2.4.3/pppd/pppd.8
622 622 Enables the use of PPP multilink; this is an alias for the `multilink' 623 623 option. This option is currently only available under Linux. 624 624 .TP 625 .B mppe\-lower\-mtu 626 Lowers the MTU by 4 bytes for MPPE connections. This is the correct 627 behaviour but breaks accessing some sites. This is the default. 628 .TP 625 629 .B mppe\-stateful 626 630 Allow MPPE to use stateful mode. Stateless mode is still attempted first. 627 631 The default is to disallow stateful mode. … … 766 770 .B nomppe\-128 767 771 Disable 128-bit encryption with MPPE. 768 772 .TP 773 .TP 774 .B nomppe\-lower\-mtu 775 Disables lowering the MTU by 4 bytes for MPPE connections. This is sometimes 776 required to access servers behind load balancing devices that break Path 777 MTU Discovery. 769 778 .B nomppe\-stateful 770 779 Disable MPPE stateful mode. This is the default. 771 780 .TP
Note: See TracBrowser
for help on using the repository browser.