diff options
author | Ermal <eri@pfsense.org> | 2011-07-20 22:39:39 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-07-20 22:39:55 +0000 |
commit | 006f5f164dd865213d0bbe8cd59c3ca43c13afd4 (patch) | |
tree | 5572a136238c59572e4d58f1368ef6176e3e1ded /etc | |
parent | bbcc16cb0d3d0f34b876c095b456f9dbc727d4d1 (diff) | |
download | pfsense-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.inc | 4 |
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); |