summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 98d0bab..c79554b 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2909,10 +2909,12 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven
} else if ($mtu != get_interface_mtu($realhwif))
pfSense_interface_mtu($realhwif, $mtu);
} else if ($mtu != get_interface_mtu($realhwif))
+ /* XXX: This is really dangerous for example with vlans changing their parent mtu! */
pfSense_interface_mtu($realhwif, $mtu);
/*
* All vlans need to use the same mtu value as their parent.
+ * XXX: This is wrong. It should check for assigned vlans and see if there is any mtu set
*/
if (is_array($config['vlans']['vlan']))
foreach ($config['vlans']['vlan'] as $vlan)
OpenPOWER on IntegriCloud