diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-10-26 18:26:17 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-10-26 18:26:17 +0000 |
commit | ce248e9e1745b520027d54ada49640c2d6300a55 (patch) | |
tree | 88301a79ba6daaa6183ae0df32b685f2d30e7d8c /packages/snort | |
parent | 5ef15008d61780a072ed4dcdfdb1d0e0035c1c9c (diff) | |
download | pfsense-packages-ce248e9e1745b520027d54ada49640c2d6300a55.tar.gz pfsense-packages-ce248e9e1745b520027d54ada49640c2d6300a55.tar.bz2 pfsense-packages-ce248e9e1745b520027d54ada49640c2d6300a55.zip |
Issue BPF changes correctly
Diffstat (limited to 'packages/snort')
-rw-r--r-- | packages/snort/snort.inc | 8 |
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"; |