diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-11-25 19:23:53 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-11-25 19:23:53 +0100 |
commit | bc8f326432934814dec718e2a38753530380ec66 (patch) | |
tree | 9f7c9989fca8c654b9b874438f02dda29eb56125 /usr/local/www | |
parent | 6c101e32eca5ee8cedf4366ead4d003bb56a9da7 (diff) | |
download | pfsense-bc8f326432934814dec718e2a38753530380ec66.zip pfsense-bc8f326432934814dec718e2a38753530380ec66.tar.gz |
Ticket #2786 there is an issue with convert_real_interface_to_friendly_interface which might return not expected data as in the situation checked for vlan case her ein the validation. Avoid for this case here the issue to allow properly setting mtu on vlans with not assigned parent.
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/interfaces.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index c044ea7..7d2a066 100644 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -734,7 +734,7 @@ if ($_POST['apply']) { // Need code to handle MLPPP if we ever use $realhwif for MLPPP handling $parent_realhwif = $realhwif_array[0]; $parent_if = convert_real_interface_to_friendly_interface_name($parent_realhwif); - if (!empty($parent_if) && !empty($config['interfaces'][$parent_if]['mtu'])) { + if (!empty($parent_if) && $parent_if != $if && !empty($config['interfaces'][$parent_if]['mtu'])) { if ($_POST['mtu'] > intval($config['interfaces'][$parent_if]['mtu'])) $input_errors[] = gettext("The MTU of a VLAN cannot be greater than that of its parent interface."); } |