diff options
author | Ermal <eri@pfsense.org> | 2011-12-28 08:38:06 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-12-28 08:38:22 +0000 |
commit | 47ee6926eceb3b744a81f44757bcb024b5292c17 (patch) | |
tree | 70d12499bdabf038626d863c3b40565ca12847e4 /etc/inc/globals.inc | |
parent | c5735e46e72bf70e147ed79809b845769706f9fe (diff) | |
download | pfsense-47ee6926eceb3b744a81f44757bcb024b5292c17.zip pfsense-47ee6926eceb3b744a81f44757bcb024b5292c17.tar.gz |
Implement is_jumbo_capable in a more performant way. This should help with large number of interfaces
Diffstat (limited to 'etc/inc/globals.inc')
-rw-r--r-- | etc/inc/globals.inc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc index 8546236..3dbb903 100644 --- a/etc/inc/globals.inc +++ b/etc/inc/globals.inc @@ -40,22 +40,6 @@ function remove_numbers($string) { return $string; } -function get_nics_with_capabilities($CAPABILITIES) { - $ifs = `/sbin/ifconfig -l`; - $if_list = split(" ", $ifs); - $vlan_native_supp = array(); - foreach($if_list as $if => $iface) { - $iface = trim($iface); - $capable = pfSense_get_interface_addresses($iface); - if(isset($capable['caps'][$CAPABILITIES])) { - $interfacenonum = remove_numbers($iface); - if(!in_array($interfacenonum, $vlan_native_supp)) - $vlan_native_supp[] = $interfacenonum; - } - } - return $vlan_native_supp; -} - $g = array( "base_packages" => "siproxd", "event_address" => "unix:///var/run/check_reload_status", @@ -112,10 +96,6 @@ $g = array( "help_base_url" => "/help.php" ); -// Loop through and set vlan_long_frame VLAN_MTU -$vlan_native_supp = get_nics_with_capabilities("vlanmtu"); -$g['vlan_long_frame'] = array_merge(array("vge", "bfe", "bge", "dc", "em", "fxp", "gem", "hme", "ixgb", "le", "lem", "nge", "re", "rl", "sis", "sk", "ste", "ti", "tl", "tx", "txp", "vr", "xl", "lagg"), (array)$vlan_native_supp); - /* IP TOS flags */ $iptos = array("lowdelay", "throughput", "reliability"); |