Revision 08fe7601
Added by Renato Botelho about 6 years ago
src/etc/inc/config.console.inc | ||
---|---|---|
454 | 454 |
} else { |
455 | 455 |
$vlan_capable = 0; |
456 | 456 |
foreach ($iflist as $iface => $ifa) { |
457 |
if (is_jumbo_capable($iface)) { |
|
458 |
echo sprintf("% -8s%s%s\n", $iface, $ifa['mac'], |
|
459 |
$ifa['up'] ? " (up)" : ""); |
|
460 |
$vlan_capable++; |
|
461 |
} |
|
457 |
echo sprintf("% -8s%s%s\n", $iface, $ifa['mac'], |
|
458 |
$ifa['up'] ? " (up)" : ""); |
|
459 |
$vlan_capable++; |
|
462 | 460 |
} |
463 | 461 |
} |
464 | 462 |
|
... | ... | |
471 | 469 |
$vlan['if'] = chop(fgets($fp)); |
472 | 470 |
|
473 | 471 |
if ($vlan['if']) { |
474 |
if (!array_key_exists($vlan['if'], $iflist) || |
|
475 |
!is_jumbo_capable($vlan['if'])) { |
|
476 |
printf(gettext('%1$sInvalid interface name \'%2$s\'%3$s'), "\n", $vlan['if'], "\n"); |
|
472 |
if (!array_key_exists($vlan['if'], $iflist)) { |
|
473 |
printf(gettext( |
|
474 |
'%1$sInvalid interface name \'%2$s\'%3$s'), |
|
475 |
"\n", $vlan['if'], "\n"); |
|
477 | 476 |
continue; |
478 | 477 |
} |
479 | 478 |
} else { |
Also available in: Unified diff
Fix #9548: Do not rely on VLANMTU flag
Do not consider VLAN capable only interfaces that have VLANMTU flag.
This flag is used to determine if that interface can do 1500 MTU even
with VLANG tag set.