aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-10-26 18:26:17 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-10-26 18:26:17 +0000
commitce248e9e1745b520027d54ada49640c2d6300a55 (patch)
tree88301a79ba6daaa6183ae0df32b685f2d30e7d8c
parent5ef15008d61780a072ed4dcdfdb1d0e0035c1c9c (diff)
downloadpfsense-packages-ce248e9e1745b520027d54ada49640c2d6300a55.tar.gz
pfsense-packages-ce248e9e1745b520027d54ada49640c2d6300a55.tar.bz2
pfsense-packages-ce248e9e1745b520027d54ada49640c2d6300a55.zip
Issue BPF changes correctly
-rw-r--r--packages/snort/snort.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc
index bad72c09..af300c54 100644
--- a/packages/snort/snort.inc
+++ b/packages/snort/snort.inc
@@ -91,6 +91,14 @@ function sync_package_snort() {
if($bpfmaxinsns)
$start .= ";sysctl net.bpf.maxinsns={$bpfmaxinsns}";
+ /* go ahead and issue bpf changes */
+ if($bpfbufsize)
+ mwexec_bg("sysctl net.bpf.bufsize={$bpfbufsize}");
+ if($bpfmaxbufsize)
+ mwexec_bg("sysctl net.bpf.maxbufsize={$bpfmaxbufsize}");
+ if($bpfmaxinsns)
+ mwexec_bg("sysctl net.bpf.maxinsns={$bpfmaxinsns}");
+
/* start snort */
$start .= ";snort -c /usr/local/etc/snort/snort.conf -l /var/log/snort {$ifaces_final} -A full -D";