Commit d32f08b8 authored by Ad Schellevis's avatar Ad Schellevis

(filter.inc) not very useful to wrap a single line in a function, filter_rules_spoofcheck_generate

parent 01568e54
...@@ -2455,7 +2455,7 @@ EOD; ...@@ -2455,7 +2455,7 @@ EOD;
} }
if ($oc['ip'] && !($isbridged) && !isset($oc['internal_dynamic'])) { if ($oc['ip'] && !($isbridged) && !isset($oc['internal_dynamic'])) {
$ipfrules .= filter_rules_spoofcheck_generate($on, $oc, $log); $ipfrules .= "antispoof {$log['block']} for \${$oc['descr']} \n";
} }
/* block private networks ? */ /* block private networks ? */
...@@ -2856,14 +2856,6 @@ EOD; ...@@ -2856,14 +2856,6 @@ EOD;
return $ipfrules; return $ipfrules;
} }
function filter_rules_spoofcheck_generate($ifname, $ifcfg, $log)
{
global $config;
$ipfrules = "antispoof {$log['block']} for \${$ifcfg['descr']} \n";
return $ipfrules;
}
/****f* filter/filter_get_time_based_rule_status /****f* filter/filter_get_time_based_rule_status
* NAME * NAME
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment