Revision 006f5f16
Added by Ermal LUÇI about 14 years ago
etc/inc/interfaces.inc | ||
---|---|---|
457 | 457 |
$realif = get_real_interface($member); |
458 | 458 |
$opts = pfSense_get_interface_addresses($realif); |
459 | 459 |
$mtu = $opts['mtu']; |
460 |
if (substr($realif, 0, 3) == "gif" && $mtu < 1500) |
|
460 |
if (substr($realif, 0, 3) == "gif" && $mtu <= 1500)
|
|
461 | 461 |
continue; |
462 | 462 |
if (!isset($opts['encaps']['txcsum'])) |
463 | 463 |
$commontx = false; |
... | ... | |
624 | 624 |
$mtu = get_interface_mtu($brigeif); |
625 | 625 |
$mtum = get_interface_mtu($interface); |
626 | 626 |
|
627 |
if ($mtu != $mtum) |
|
627 |
if ($mtu != $mtum && substr($interface, 0, 3) == "gif" && $mtu <= 1500)
|
|
628 | 628 |
pfSense_interface_mtu($interface, $mtu); |
629 | 629 |
|
630 | 630 |
$options = pfSense_get_interface_addresses($bridgeif); |
Also available in: Unified diff
Correct the check for mtu 1500 to inlcude it. Also add the check on bridge_add_member function