summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorAngelo Turetta <aturetta@pfsense.org>2008-10-17 12:13:29 +0000
committerAngelo Turetta <aturetta@pfsense.org>2008-10-17 12:13:29 +0000
commit9a866c66e4cc59a67cbc8a8a178f3f9e89cfb9db (patch)
treef6259c0a89b6b3c6efcdf53f91298b5747db27ee /etc/inc
parent111d1985b0fd69f68273ad988f97f332af443203 (diff)
downloadpfsense-9a866c66e4cc59a67cbc8a8a178f3f9e89cfb9db.zip
pfsense-9a866c66e4cc59a67cbc8a8a178f3f9e89cfb9db.tar.gz
Attempt to fix VLAN creation. AFAIKT FreeBSD7 enables use of HW tagging even without link0. Needs validation on a wider test
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/interfaces.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index f6e6efb..70541cb 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -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;
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud