summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-01-03 08:43:58 -0500
committerjim-p <jimp@pfsense.org>2013-01-03 08:44:31 -0500
commite83eaf36a1640beef08a109bb8db3df8a15a0e3e (patch)
treec77bb8fbe47b5a275fcf4740e37dec9b6720cd92
parent4a1a432b800ee07e8b6b14adc075402e5c545844 (diff)
downloadpfsense-e83eaf36a1640beef08a109bb8db3df8a15a0e3e.zip
pfsense-e83eaf36a1640beef08a109bb8db3df8a15a0e3e.tar.gz
Pass -S to tcpdump to avoid an increase in memory consumption over time.
-rw-r--r--etc/inc/filter.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index d30ed24..ece6b04 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -124,9 +124,9 @@ function filter_pflog_start() {
}
mute_kernel_msgs();
$output = 0;
- exec("/bin/pgrep -af 'tcpdump -s 256 -v -l -n -e -ttt -i pflog0'", $output, $retval);
+ exec("/bin/pgrep -af 'tcpdump -s 256 -v -S -l -n -e -ttt -i pflog0'", $output, $retval);
if($retval != 0)
- mwexec_bg("/usr/sbin/tcpdump -s 256 -v -l -n -e -ttt -i pflog0 | logger -t pf -p local0.info");
+ mwexec_bg("/usr/sbin/tcpdump -s 256 -v -S -l -n -e -ttt -i pflog0 | logger -t pf -p local0.info");
unmute_kernel_msgs();
}
OpenPOWER on IntegriCloud