diff options
author | jim-p <jimp@pfsense.org> | 2013-01-03 08:40:33 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-01-03 08:40:33 -0500 |
commit | ab350c0f4a9158bceab78d36a5c81fe79512b0db (patch) | |
tree | cdb529010a7e9b9d7aefb7b0e3ca9f9b372be396 | |
parent | 2ba3ea05709b63127bc2f7856635292f7bc10623 (diff) | |
download | pfsense-ab350c0f4a9158bceab78d36a5c81fe79512b0db.zip pfsense-ab350c0f4a9158bceab78d36a5c81fe79512b0db.tar.gz |
Pass -S to tcpdump to avoid an increase in memory consumption over time.
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 2c9a432..38765df 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -93,13 +93,13 @@ function filter_pflog_start($kill_first = false) { } 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 ($kill_first && ($output[0] > 1)) { mwexec("/bin/kill {$output[0]}"); usleep(1000); } 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(); } |