From e83eaf36a1640beef08a109bb8db3df8a15a0e3e Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 3 Jan 2013 08:43:58 -0500 Subject: [PATCH] Pass -S to tcpdump to avoid an increase in memory consumption over time. --- etc/inc/filter.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index d30ed247bc..ece6b0432c 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(); }