summaryrefslogtreecommitdiffstats
path: root/etc/inc/filter.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-03-27 23:27:58 +0000
committerErmal Luçi <eri@pfsense.org>2008-03-27 23:27:58 +0000
commit6ff3ec79a1875584db8e99b346e88d47322180f8 (patch)
treee157d7f1763f3aadcd308e0558ba509d489c939a /etc/inc/filter.inc
parent26192a09a7efc329246589e37a67e8dd38bb702b (diff)
downloadpfsense-6ff3ec79a1875584db8e99b346e88d47322180f8.zip
pfsense-6ff3ec79a1875584db8e99b346e88d47322180f8.tar.gz
FreeBSD 7 has pf 4.1 which for stateless rules needs the "no state" keyword.
Make the needed change to make stateless rules be generated correctly. Also there are no advanced options to be generated with this. Fix this regression too.
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r--etc/inc/filter.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index de9135f..c596a5b 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2085,10 +2085,11 @@ function generate_user_filter_rule($rule, $ngcounter) {
queueing in certain situations. please check the faq.
*/
$noadvoptions = false;
- if(isset($rule['statetype']) && $rule['statetype'] <> "") {
+ if(isset($rule['Statetype']) && $rule['statetype'] <> "") {
switch($rule['statetype']) {
case "none":
- $noadvoptions = false;
+ $noadvoptions = true;
+ $aline['flags'] = " no state ";
break;
case "modulate state":
case "synproxy state":
OpenPOWER on IntegriCloud