summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-11-06 15:05:24 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-11-06 15:05:24 +0000
commitfec21a9930fe712b7c35ac38b28fb26a958a838a (patch)
treecd3c70759957bf577687b194b4f889b4a2500ba1 /etc/inc/pfsense-utils.inc
parentda7c792a53ae6e6b83f8189fac84767c163ce710 (diff)
downloadpfsense-fec21a9930fe712b7c35ac38b28fb26a958a838a.zip
pfsense-fec21a9930fe712b7c35ac38b28fb26a958a838a.tar.gz
Do not toggle polling on vlan interfaces
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index dccfdad..ec7fa93 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1032,6 +1032,9 @@ function setup_polling() {
if(stristr($real_interface, $supported)) {
$supported = true;
}
+ if (stristr($real_interface, "vlan")) {
+ $supported = false;
+ }
}
if ($supported == true) {
mwexec("/sbin/ifconfig {$real_interface} polling");
@@ -1803,7 +1806,7 @@ function WakeOnLan($addr, $mac)
* NOTE: this command takes 5 seconds to run
*/
function gather_altq_queue_stats($dont_return_root_queues) {
- mwexec("/usr/bin/killall -9 pfctl");
+ mwexec("/usr/bin/killall -9 pfctl", true);
$stats = `/sbin/pfctl -vvsq & /bin/sleep 5;/usr/bin/killall pfctl 2>/dev/null`;
$stats_array = split("\n", $stats);
$queue_stats = array();
@@ -3693,4 +3696,4 @@ function safe_write_file($file, $content, $force_binary) {
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud