summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgnhb <gnoahb@gmail.com>2010-06-03 23:27:38 +0700
committergnhb <gnoahb@gmail.com>2010-06-03 23:27:38 +0700
commit8adc1e49ad7fd92b97fde6997d60a1b3bcd9128c (patch)
tree8f6a7f887fe516fee349ceba0a539d68f1bd20f7
parentc5232cbbb986a834d4546cff38f38179b151441e (diff)
downloadpfsense-8adc1e49ad7fd92b97fde6997d60a1b3bcd9128c.zip
pfsense-8adc1e49ad7fd92b97fde6997d60a1b3bcd9128c.tar.gz
Set default values to what we've had in the past.
`
-rw-r--r--etc/inc/interfaces.inc8
-rw-r--r--usr/local/www/interfaces_ppps_edit.php2
2 files changed, 7 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index e3f5f0c..700edbe 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1000,8 +1000,11 @@ EOD;
EOD;
if (isset($ppp['tcpmssfix']))
+ $tcpmss = "disable";
+ else
+ $tcpmss = "enable";
$mpdconf .= <<<EOD
- set iface enable tcpmssfix
+ set iface {$tcpmss} tcpmssfix
EOD;
@@ -1073,7 +1076,8 @@ EOD;
EOD;
- if (!empty($mtus[$pid]))
+ if (empty($mtus[$pid]))
+ $mtus[$pid] = "1492";
$mpdconf .= <<<EOD
set link mtu {$mtus[$pid]}
diff --git a/usr/local/www/interfaces_ppps_edit.php b/usr/local/www/interfaces_ppps_edit.php
index 4e95852..0704e9b 100644
--- a/usr/local/www/interfaces_ppps_edit.php
+++ b/usr/local/www/interfaces_ppps_edit.php
@@ -816,7 +816,7 @@ $types = array("select" => "Select", "ppp" => "PPP", "pppoe" => "PPPoE", "pptp"
<tr style="display:none" id="advanced_<?=$k;?>" name="advanced_<?=$k;$k++;?>">
<td width="22%" valign="top" class="vncell"><?= gettext("TCPmssFix"); ?></td>
<td width="78%" class="vtable">
- <input type="checkbox" value="on" id="tcpmssfix" name="tcpmssfix" <?php if (isset($pconfig['tcpmssfix'])) echo "checked"; ?>>&nbsp;<?= gettext("Enable tcpmssfix (disabled by default)."); ?>
+ <input type="checkbox" value="on" id="tcpmssfix" name="tcpmssfix" <?php if (isset($pconfig['tcpmssfix'])) echo "checked"; ?>>&nbsp;<?= gettext("Disable tcpmssfix (enabled by default)."); ?>
<br/> <span class="vexpl">This option causes mpd to adjust incoming and outgoing TCP SYN segments so that the requested maximum segment size is not greater than the amount
allowed by the interface MTU. This is necessary in many setups to avoid problems caused by routers that drop ICMP Datagram Too Big messages. Without these messages,
the originating machine sends data, it passes the rogue router then hits a machine that has an MTU that is not big enough for the data. Because the IP Don't Fragment option is set,
OpenPOWER on IntegriCloud