summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@cmb-macbook-pro.local>2009-04-18 03:10:29 -0400
committerChris Buechler <cmb@cmb-macbook-pro.local>2009-04-18 03:10:29 -0400
commit7c964ff020a9db4aaae0b67260ee5e76e7b4713b (patch)
tree24d94d1a3dfb109f2023a56e967140105f990e82 /etc/inc/pfsense-utils.inc
parentf031a007d5e9ee5782ed1508d8af52373727731e (diff)
downloadpfsense-7c964ff020a9db4aaae0b67260ee5e76e7b4713b.zip
pfsense-7c964ff020a9db4aaae0b67260ee5e76e7b4713b.tar.gz
Fix polling, update supported interfaces list.
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 7f67509..3945caa 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1064,7 +1064,7 @@ function setup_polling() {
setup_polling_defaults();
if(isset($config['system']['polling']))
- $supported_ints = array('dc', 'em', 'fwe', 'fwip', 'fxp', 'ixgb', 'ste', 'nge', 're', 'rl', 'sf', 'sis', 'ste', 'vge', 'vr', 'xl');
+ $supported_ints = array('bge', 'dc', 'em', 'fwe', 'fwip', 'fxp', 'ixgb', 'nfe', 'nge', 're', 'rl', 'sf', 'sis', 'ste', 'stge', 'vge', 'vr', 'xl');
else
$supported_ints = array();
@@ -1075,10 +1075,11 @@ function setup_polling() {
foreach ($iflist as $ifent => $ifname) {
$real_interface = convert_friendly_interface_to_real_interface_name($ifname);
- if(!in_array($real_interface, $supported_ints)) {
- continue;
- }
+ $ifdevice = substr($real_interface, 0, -1);
if(isset($config['system']['polling'])) {
+ if(!in_array($ifdevice, $supported_ints)) {
+ continue;
+ }
mwexec("/sbin/ifconfig {$real_interface} polling");
} else {
mwexec("/sbin/ifconfig {$real_interface} -polling");
OpenPOWER on IntegriCloud