diff options
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/globals.inc | 2 | ||||
-rw-r--r-- | etc/inc/interfaces.inc | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc index 2296005..8e6fdeb 100644 --- a/etc/inc/globals.inc +++ b/etc/inc/globals.inc @@ -70,7 +70,7 @@ $g = array( "embeddedbootupslice" => "/dev/ad0a", "wireless_regex" => "/^(ndis|wi|ath|an|ral|ural|wai|iwi|awi|wlan)/", "vlan_native_supp" => array("bfe", "dc", "fxp", "gem", "hme", "rl", "sis", "ste", "tl", "tx", "xl"), - "vlan_long_frame" => array("bfe", "bge", "dc", "em", "fxp", "gem", "hme", "ixgb", "nge", "re", "rl", "sis", "ste", "ti", "tl", "tx", "txp", "xl", "sk") + "vlan_long_frame" => array("bfe", "bge", "dc", "em", "fxp", "gem", "hme", "ixgb", "le", "nge", "re", "rl", "sis", "sk", "ste", "ti", "tl", "tx", "txp", "xl") ); /* IP TOS flags */ diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 4621e2f..db5b19f 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -37,6 +37,7 @@ /* include all configuration functions */ require_once("functions.inc"); +require_once("globals.inc"); function interfaces_loopback_configure() { mwexec("/sbin/ifconfig lo0 127.0.0.1"); @@ -45,15 +46,15 @@ function interfaces_loopback_configure() { } function interfaces_vlan_configure() { - global $config; + global $config, $g; if (is_array($config['vlans']['vlan']) && count($config['vlans']['vlan'])) { /* devices with native VLAN support */ - $vlan_native_supp = explode(" ", "bge em ixgb nge re ti txp vge"); + $vlan_native_supp = $g['vlan_native_supp']; /* devices with long frame support */ - $vlan_long_supp = explode(" ", "bfe dc fxp gem hme le rl sis sk ste tl tx xl"); + $vlan_long_frame = $g['vlan_long_frame']; /* sweep through and axe old interfaces */ $vlan_count = get_number_of_vlan_interfaces(); @@ -77,7 +78,7 @@ function interfaces_vlan_configure() { if (in_array($drvname, $vlan_native_supp)) $cmd .= " link0"; - else if (in_array($drvname, $vlan_long_supp)) + else if (in_array($drvname, $vlan_long_frame)) $cmd .= " mtu 1500"; mwexec($cmd); @@ -1702,4 +1703,4 @@ function get_interface_mac($interface) { return $mac; } -?> +?>
\ No newline at end of file |