diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-11-07 23:11:35 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-11-07 23:11:35 +0000 |
commit | ccaf2def0b91af6d9c82be8ea47183f65a2a4bef (patch) | |
tree | ddfcb4a9ed0142ed3f85197bee24d8f37da2480a /etc | |
parent | 3eb583e61740dd938b7aef8401e3c424ee51d482 (diff) | |
download | pfsense-ccaf2def0b91af6d9c82be8ea47183f65a2a4bef.zip pfsense-ccaf2def0b91af6d9c82be8ea47183f65a2a4bef.tar.gz |
Do not attempt to toggle polling on unsupported interfaces.
MFC: after testing confirms working with and without polling
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index c08a250..c3f2673 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1056,17 +1056,10 @@ function setup_polling() { foreach ($iflist as $ifent => $ifname) { $real_interface = convert_friendly_interface_to_real_interface_name($ifname); - $supported = false; - foreach($supported_ints as $supported_int) { - if(stristr($real_interface, $supported_int)) { - $supported = true; - continue; - } - } - if (stristr($real_interface, "vlan")) { - $supported = false; - } - if ($supported == true) { + if(!in_array($real_interface, $supported_ints)) { + continue; + } + if(isset($config['system']['polling'])) { mwexec("/sbin/ifconfig {$real_interface} polling"); } else { mwexec("/sbin/ifconfig {$real_interface} -polling"); |