summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-05-31 16:18:57 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-05-31 16:18:57 +0000
commit5170d8c2bfa99f1afacfef6c8a78463636e0e990 (patch)
tree74fa0681681b842371a05dcd1faf158902468569 /etc
parentf185363701b7f5ad973f0d5e2dfb2f983a75f47b (diff)
downloadpfsense-5170d8c2bfa99f1afacfef6c8a78463636e0e990.zip
pfsense-5170d8c2bfa99f1afacfef6c8a78463636e0e990.tar.gz
Correctly remark this code snippet out
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc9
1 files changed, 3 insertions, 6 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 5467ab7..b73cbbd 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -137,18 +137,15 @@ function filter_configure() {
}
/* XXX - billm
- /* load ipfw+altq module */
if (isset($config['shaper']['enable'])) {
mute_kernel_msgs();
mwexec("/sbin/kldload ipfw");
unmute_kernel_msgs();
- /* change one_pass to 1 so ipfw stops checking after
- a rule has matched */
+
+
mwexec("/sbin/sysctl net.inet.ip.fw.one_pass=1");
- /* load shaper rules */
+
mwexec("/sbin/ipfw -f delete set 4");
- /* XXX - seems like ipfw cannot accept rules directly on stdin,
- so we have to write them to a temporary file first */
$fd = fopen("{$g['tmp_path']}/ipfw.rules", "w");
if (!$fd) {
printf("Cannot open ipfw.rules in filter_configure()\n");
OpenPOWER on IntegriCloud