From 7c964ff020a9db4aaae0b67260ee5e76e7b4713b Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sat, 18 Apr 2009 03:10:29 -0400 Subject: Fix polling, update supported interfaces list. --- etc/inc/pfsense-utils.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'etc/inc/pfsense-utils.inc') 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"); -- cgit v1.1