summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-07-20 22:39:39 +0000
committerErmal <eri@pfsense.org>2011-07-20 22:39:55 +0000
commit006f5f164dd865213d0bbe8cd59c3ca43c13afd4 (patch)
tree5572a136238c59572e4d58f1368ef6176e3e1ded /etc
parentbbcc16cb0d3d0f34b876c095b456f9dbc727d4d1 (diff)
downloadpfsense-006f5f164dd865213d0bbe8cd59c3ca43c13afd4.zip
pfsense-006f5f164dd865213d0bbe8cd59c3ca43c13afd4.tar.gz
Correct the check for mtu 1500 to inlcude it. Also add the check on bridge_add_member function
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index a5f647c..c682fb8 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -457,7 +457,7 @@ function interface_bridge_configure(&$bridge) {
$realif = get_real_interface($member);
$opts = pfSense_get_interface_addresses($realif);
$mtu = $opts['mtu'];
- if (substr($realif, 0, 3) == "gif" && $mtu < 1500)
+ if (substr($realif, 0, 3) == "gif" && $mtu <= 1500)
continue;
if (!isset($opts['encaps']['txcsum']))
$commontx = false;
@@ -624,7 +624,7 @@ function interface_bridge_add_member($bridgeif, $interface) {
$mtu = get_interface_mtu($brigeif);
$mtum = get_interface_mtu($interface);
- if ($mtu != $mtum)
+ if ($mtu != $mtum && substr($interface, 0, 3) == "gif" && $mtu <= 1500)
pfSense_interface_mtu($interface, $mtu);
$options = pfSense_get_interface_addresses($bridgeif);
OpenPOWER on IntegriCloud