mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Attempt to fix VLAN creation. AFAIKT FreeBSD7 enables use of HW tagging even without link0. Needs validation on a wider test
This commit is contained in:
parent
111d1985b0
commit
9a866c66e4
@ -76,10 +76,15 @@ function interfaces_vlan_configure() {
|
||||
}
|
||||
$drvname = substr($vlan['if'], 0, $j);
|
||||
|
||||
/* Apparently, FreeBSD7 DoesTheRightThing without much help
|
||||
'link0' is no more mentioned in vlan section of 'man ifconfig',
|
||||
(it returns error on sis(4)) and 'mtu' also seems redundant
|
||||
XXXX: this code may be removed once my findings are validated
|
||||
if (in_array($drvname, $vlan_native_supp))
|
||||
$cmd .= " link0";
|
||||
else if (in_array($drvname, $vlan_long_frame))
|
||||
$cmd .= " mtu 1500";
|
||||
*/
|
||||
|
||||
mwexec($cmd);
|
||||
|
||||
@ -1732,4 +1737,4 @@ function get_interface_mac($interface) {
|
||||
return $mac;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user