fixed a type as per #53

This commit is contained in:
Costa Tsaousis (ktsaou) 2015-02-03 20:18:44 +02:00
parent 16849f1463
commit 808e33a4a1

@ -5610,7 +5610,7 @@ rule() {
# if set to 1, log and loglimit are ignored. # if set to 1, log and loglimit are ignored.
local nolog=0 local nolog=0
# if set to 1, detection algorithm about overwritting optional rule # if set to 1, detection algorithm about overwriting optional rule
# parameters will take place. # parameters will take place.
local softwarnings=1 local softwarnings=1
@ -5626,13 +5626,13 @@ rule() {
;; ;;
table|TABLE) table|TABLE)
test ${softwarnings} -eq 1 -a ! -z "${table}" && softwarning "Overwritting param: ${1} '${chain}' becomes '${2}'" test ${softwarnings} -eq 1 -a ! -z "${table}" && softwarning "Overwriting param: ${1} '${chain}' becomes '${2}'"
table="-t ${2}" table="-t ${2}"
shift 2 shift 2
;; ;;
chain|CHAIN) chain|CHAIN)
test ${softwarnings} -eq 1 -a ! -z "${chain}" && softwarning "Overwritting param: ${1} '${chain}' becomes '${2}'" test ${softwarnings} -eq 1 -a ! -z "${chain}" && softwarning "Overwriting param: ${1} '${chain}' becomes '${2}'"
chain="${2}" chain="${2}"
shift 2 shift 2
;; ;;
@ -5652,7 +5652,7 @@ rule() {
work_inface="${1}" work_inface="${1}"
fi fi
fi fi
test ${softwarnings} -eq 1 -a ! "${inface}" = "any" && softwarning "Overwritting param: inface '${inface}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${inface}" = "any" && softwarning "Overwriting param: inface '${inface}' becomes '${1}'"
inface="${1//,/ }" inface="${1//,/ }"
else else
outfacenot= outfacenot=
@ -5666,7 +5666,7 @@ rule() {
work_outface="$1" work_outface="$1"
fi fi
fi fi
test ${softwarnings} -eq 1 -a ! "${outface}" = "any" && softwarning "Overwritting param: outface '${outface}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${outface}" = "any" && softwarning "Overwriting param: outface '${outface}' becomes '${1}'"
outface="${1//,/ }" outface="${1//,/ }"
fi fi
shift shift
@ -5687,7 +5687,7 @@ rule() {
work_outface="${1}" work_outface="${1}"
fi fi
fi fi
test ${softwarnings} -eq 1 -a ! "${outface}" = "any" && softwarning "Overwritting param: outface '${outface}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${outface}" = "any" && softwarning "Overwriting param: outface '${outface}' becomes '${1}'"
outface="${1//,/ }" outface="${1//,/ }"
else else
infacenot= infacenot=
@ -5701,7 +5701,7 @@ rule() {
work_inface="${1}" work_inface="${1}"
fi fi
fi fi
test ${softwarnings} -eq 1 -a ! "${inface}" = "any" && softwarning "Overwritting param: inface '${inface}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${inface}" = "any" && softwarning "Overwriting param: inface '${inface}' becomes '${1}'"
inface="${1//,/ }" inface="${1//,/ }"
fi fi
shift shift
@ -5717,7 +5717,7 @@ rule() {
shift shift
physinnot="!" physinnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${physin}" = "any" && softwarning "Overwritting param: physin '${physin}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${physin}" = "any" && softwarning "Overwriting param: physin '${physin}' becomes '${1}'"
physin="${1//,/ }" physin="${1//,/ }"
else else
physoutnot= physoutnot=
@ -5726,7 +5726,7 @@ rule() {
shift shift
physoutnot="!" physoutnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${physout}" = "any" && softwarning "Overwritting param: physout '${physout}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${physout}" = "any" && softwarning "Overwriting param: physout '${physout}' becomes '${1}'"
physout="${1//,/ }" physout="${1//,/ }"
fi fi
shift shift
@ -5742,7 +5742,7 @@ rule() {
shift shift
physoutnot="!" physoutnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${physout}" = "any" && softwarning "Overwritting param: physout '${physout}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${physout}" = "any" && softwarning "Overwriting param: physout '${physout}' becomes '${1}'"
physout="${1//,/ }" physout="${1//,/ }"
else else
physinnot= physinnot=
@ -5751,7 +5751,7 @@ rule() {
shift shift
physinnot="!" physinnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${physin}" = "any" && softwarning "Overwritting param: physin '${physin}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${physin}" = "any" && softwarning "Overwriting param: physin '${physin}' becomes '${1}'"
physin="${1//,/ }" physin="${1//,/ }"
fi fi
shift shift
@ -5765,7 +5765,7 @@ rule() {
shift shift
test ${nomac} -eq 0 && macnot="!" test ${nomac} -eq 0 && macnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${mac}" = "any" && softwarning "Overwritting param: mac '${mac}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${mac}" = "any" && softwarning "Overwriting param: mac '${mac}' becomes '${1}'"
test ${nomac} -eq 0 && mac="${1//,/ }" test ${nomac} -eq 0 && mac="${1//,/ }"
shift shift
;; ;;
@ -5792,11 +5792,11 @@ rule() {
running_ipv6 && src6not="!" running_ipv6 && src6not="!"
fi fi
if running_ipv4; then if running_ipv4; then
test ${softwarnings} -eq 1 -a ! "${src4}" = "default" && softwarning "Overwritting param: src4 '${src4}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${src4}" = "default" && softwarning "Overwriting param: src4 '${src4}' becomes '${1}'"
src4="${1//,/ }" src4="${1//,/ }"
fi fi
if running_ipv6; then if running_ipv6; then
test ${softwarnings} -eq 1 -a ! "${src6}" = "default" && softwarning "Overwritting param: src6 '${src6}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${src6}" = "default" && softwarning "Overwriting param: src6 '${src6}' becomes '${1}'"
src6="${1//,/ }" src6="${1//,/ }"
fi fi
else else
@ -5809,11 +5809,11 @@ rule() {
running_ipv6 && dst6not="!" running_ipv6 && dst6not="!"
fi fi
if running_ipv4; then if running_ipv4; then
test ${softwarnings} -eq 1 -a ! "${dst4}" = "default" && softwarning "Overwritting param: dst4 '${dst4}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${dst4}" = "default" && softwarning "Overwriting param: dst4 '${dst4}' becomes '${1}'"
dst4="${1//,/ }" dst4="${1//,/ }"
fi fi
if running_ipv6; then if running_ipv6; then
test ${softwarnings} -eq 1 -a ! "${dst6}" = "default" && softwarning "Overwritting param: dst6 '${dst6}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${dst6}" = "default" && softwarning "Overwriting param: dst6 '${dst6}' becomes '${1}'"
dst6="${1//,/ }" dst6="${1//,/ }"
fi fi
fi fi
@ -5843,11 +5843,11 @@ rule() {
running_ipv6 && dst6not="!" running_ipv6 && dst6not="!"
fi fi
if running_ipv4; then if running_ipv4; then
test ${softwarnings} -eq 1 -a ! "${dst4}" = "default" && softwarning "Overwritting param: dst4 '${dst4}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${dst4}" = "default" && softwarning "Overwriting param: dst4 '${dst4}' becomes '${1}'"
dst4="${1//,/ }" dst4="${1//,/ }"
fi fi
if running_ipv6; then if running_ipv6; then
test ${softwarnings} -eq 1 -a ! "${dst6}" = "default" && softwarning "Overwritting param: dst6 '${dst6}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${dst6}" = "default" && softwarning "Overwriting param: dst6 '${dst6}' becomes '${1}'"
dst6="${1//,/ }" dst6="${1//,/ }"
fi fi
else else
@ -5860,11 +5860,11 @@ rule() {
running_ipv6 && src6not="!" running_ipv6 && src6not="!"
fi fi
if running_ipv4; then if running_ipv4; then
test ${softwarnings} -eq 1 -a ! "${src4}" = "default" && softwarning "Overwritting param: src6 '${src4}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${src4}" = "default" && softwarning "Overwriting param: src6 '${src4}' becomes '${1}'"
src4="${1//,/ }" src4="${1//,/ }"
fi fi
if running_ipv6; then if running_ipv6; then
test ${softwarnings} -eq 1 -a ! "${src6}" = "default" && softwarning "Overwritting param: src6 '${src6}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${src6}" = "default" && softwarning "Overwriting param: src6 '${src6}' becomes '${1}'"
src6="${1//,/ }" src6="${1//,/ }"
fi fi
fi fi
@ -5882,7 +5882,7 @@ rule() {
shift shift
srctypenot="!" srctypenot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${srctype}" = "" && softwarning "Overwritting param: srctype '${srctype}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${srctype}" = "" && softwarning "Overwriting param: srctype '${srctype}' becomes '${1}'"
srctype="`echo ${1} | ${SED_CMD} -e "s|^ \+||" -e "s| \+\$||" -e "s| \+|,|g" | ${TR_CMD} a-z A-Z`" srctype="`echo ${1} | ${SED_CMD} -e "s|^ \+||" -e "s| \+\$||" -e "s| \+|,|g" | ${TR_CMD} a-z A-Z`"
else else
dsttypenot= dsttypenot=
@ -5891,7 +5891,7 @@ rule() {
shift shift
dsttypenot="!" dsttypenot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${dsttype}" = "" && softwarning "Overwritting param: dsttype '${dsttype}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${dsttype}" = "" && softwarning "Overwriting param: dsttype '${dsttype}' becomes '${1}'"
dsttype="`echo ${1} | ${SED_CMD} -e "s|^ \+||" -e "s| \+\$||" -e "s| \+|,|g" | ${TR_CMD} a-z A-Z`" dsttype="`echo ${1} | ${SED_CMD} -e "s|^ \+||" -e "s| \+\$||" -e "s| \+|,|g" | ${TR_CMD} a-z A-Z`"
fi fi
shift shift
@ -5907,7 +5907,7 @@ rule() {
shift shift
dsttypenot="!" dsttypenot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${dsttype}" = "" && softwarning "Overwritting param: dsttype '${dsttype}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${dsttype}" = "" && softwarning "Overwriting param: dsttype '${dsttype}' becomes '${1}'"
dsttype="`echo ${1} | ${SED_CMD} -e "s|^ \+||" -e "s| \+\$||" -e "s| \+|,|g" | ${TR_CMD} a-z A-Z`" dsttype="`echo ${1} | ${SED_CMD} -e "s|^ \+||" -e "s| \+\$||" -e "s| \+|,|g" | ${TR_CMD} a-z A-Z`"
else else
srctypenot= srctypenot=
@ -5916,7 +5916,7 @@ rule() {
shift shift
srctypenot="!" srctypenot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${srctype}" = "" && softwarning "Overwritting param: srctype '${srctype}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${srctype}" = "" && softwarning "Overwriting param: srctype '${srctype}' becomes '${1}'"
srctype="`echo ${1} | ${SED_CMD} -e "s|^ \+||" -e "s| \+\$||" -e "s| \+|,|g" | ${TR_CMD} a-z A-Z`" srctype="`echo ${1} | ${SED_CMD} -e "s|^ \+||" -e "s| \+\$||" -e "s| \+|,|g" | ${TR_CMD} a-z A-Z`"
fi fi
shift shift
@ -5932,7 +5932,7 @@ rule() {
shift shift
sportnot="!" sportnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${sport}" = "any" && softwarning "Overwritting param: sport '${sport}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${sport}" = "any" && softwarning "Overwriting param: sport '${sport}' becomes '${1}'"
sport="${1//,/ }" sport="${1//,/ }"
else else
dportnot= dportnot=
@ -5941,7 +5941,7 @@ rule() {
shift shift
dportnot="!" dportnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${dport}" = "any" && softwarning "Overwritting param: dport '${dport}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${dport}" = "any" && softwarning "Overwriting param: dport '${dport}' becomes '${1}'"
dport="${1//,/ }" dport="${1//,/ }"
fi fi
shift shift
@ -5957,7 +5957,7 @@ rule() {
shift shift
dportnot="!" dportnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${dport}" = "any" && softwarning "Overwritting param: dport '${dport}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${dport}" = "any" && softwarning "Overwriting param: dport '${dport}' becomes '${1}'"
dport="${1//,/ }" dport="${1//,/ }"
else else
sportnot= sportnot=
@ -5966,7 +5966,7 @@ rule() {
shift shift
sportnot="!" sportnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${sport}" = "any" && softwarning "Overwritting param: sport '${sport}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${sport}" = "any" && softwarning "Overwriting param: sport '${sport}' becomes '${1}'"
sport="${1//,/ }" sport="${1//,/ }"
fi fi
shift shift
@ -5980,7 +5980,7 @@ rule() {
shift shift
protonot="!" protonot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${proto}" = "any" && softwarning "Overwritting param: proto '${proto}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${proto}" = "any" && softwarning "Overwriting param: proto '${proto}' becomes '${1}'"
proto="${1//,/ }" proto="${1//,/ }"
shift shift
;; ;;
@ -5995,7 +5995,7 @@ rule() {
shift shift
marknot="!" marknot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${mark}" = "any" && softwarning "Overwritting param: mark '${mark}' becomes ${markname} '${1}'" test ${softwarnings} -eq 1 -a ! "${mark}" = "any" && softwarning "Overwriting param: mark '${mark}' becomes ${markname} '${1}'"
mark="${mark} $(mark_value $markname ${1//,/ })" mark="${mark} $(mark_value $markname ${1//,/ })"
shift shift
;; ;;
@ -6008,7 +6008,7 @@ rule() {
shift shift
marknot="!" marknot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${mark}" = "any" && softwarning "Overwritting param: mark '${mark}' becomes usermark '${1}'" test ${softwarnings} -eq 1 -a ! "${mark}" = "any" && softwarning "Overwriting param: mark '${mark}' becomes usermark '${1}'"
mark="${mark} $(mark_value usermark ${1//,/ })" mark="${mark} $(mark_value usermark ${1//,/ })"
shift shift
;; ;;
@ -6021,7 +6021,7 @@ rule() {
shift shift
marknot="!" marknot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${mark}" = "any" && softwarning "Overwritting param: mark '${mark}' becomes connmark '${1}'" test ${softwarnings} -eq 1 -a ! "${mark}" = "any" && softwarning "Overwriting param: mark '${mark}' becomes connmark '${1}'"
mark="${mark} $(mark_value connmark ${1//,/ })" mark="${mark} $(mark_value connmark ${1//,/ })"
shift shift
;; ;;
@ -6034,7 +6034,7 @@ rule() {
shift shift
marknot="!" marknot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${mark}" = "any" && softwarning "Overwritting param: mark '${mark}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${mark}" = "any" && softwarning "Overwriting param: mark '${mark}' becomes '${1}'"
mark="${1//,/ }" mark="${1//,/ }"
shift shift
;; ;;
@ -6047,7 +6047,7 @@ rule() {
shift shift
tosnot="!" tosnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${tos}" = "any" && softwarning "Overwritting param: tos '${tos}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${tos}" = "any" && softwarning "Overwriting param: tos '${tos}' becomes '${1}'"
tos="${1//,/ }" tos="${1//,/ }"
shift shift
;; ;;
@ -6060,7 +6060,7 @@ rule() {
shift shift
dscpnot="!" dscpnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${dscp}" = "any" && softwarning "Overwritting param: dscp '${dscp}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${dscp}" = "any" && softwarning "Overwriting param: dscp '${dscp}' becomes '${1}'"
dscp="${1//,/ }" dscp="${1//,/ }"
shift shift
@ -6073,7 +6073,7 @@ rule() {
;; ;;
action|ACTION) action|ACTION)
test ${softwarnings} -eq 1 -a ! -z "${action}" && softwarning "Overwritting param: action '${action}' becomes '${2}'" test ${softwarnings} -eq 1 -a ! -z "${action}" && softwarning "Overwriting param: action '${action}' becomes '${2}'"
action="${2}" action="${2}"
shift 2 shift 2
@ -6435,7 +6435,7 @@ rule() {
shift shift
statenot="!" statenot="!"
fi fi
test ${softwarnings} -eq 1 -a ! -z "${state}" && softwarning "Overwritting param: state '${state}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! -z "${state}" && softwarning "Overwriting param: state '${state}' becomes '${1}'"
state="${1}" state="${1}"
shift shift
;; ;;
@ -6448,7 +6448,7 @@ rule() {
shift shift
test ${noowner} -eq 0 && uidnot="!" test ${noowner} -eq 0 && uidnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${uid}" = "any" && softwarning "Overwritting param: uid '${uid}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${uid}" = "any" && softwarning "Overwriting param: uid '${uid}' becomes '${1}'"
test ${noowner} -eq 0 && uid="${1//,/ }" test ${noowner} -eq 0 && uid="${1//,/ }"
shift shift
;; ;;
@ -6461,7 +6461,7 @@ rule() {
shift shift
test ${noowner} -eq 0 && gidnot="!" test ${noowner} -eq 0 && gidnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${gid}" = "any" && softwarning "Overwritting param: gid '${gid}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${gid}" = "any" && softwarning "Overwriting param: gid '${gid}' becomes '${1}'"
test ${noowner} -eq 0 && gid="${1//,/ }" test ${noowner} -eq 0 && gid="${1//,/ }"
shift shift
;; ;;
@ -6474,7 +6474,7 @@ rule() {
shift shift
test ${noowner} -eq 0 && pidnot="!" test ${noowner} -eq 0 && pidnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${pid}" = "any" && softwarning "Overwritting param: pid '${pid}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${pid}" = "any" && softwarning "Overwriting param: pid '${pid}' becomes '${1}'"
test ${noowner} -eq 0 && pid="${1//,/ }" test ${noowner} -eq 0 && pid="${1//,/ }"
shift shift
;; ;;
@ -6487,7 +6487,7 @@ rule() {
shift shift
test ${noowner} -eq 0 && sidnot="!" test ${noowner} -eq 0 && sidnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${sid}" = "any" && softwarning "Overwritting param: sid '${sid}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${sid}" = "any" && softwarning "Overwriting param: sid '${sid}' becomes '${1}'"
test ${noowner} -eq 0 && sid="${1//,/ }" test ${noowner} -eq 0 && sid="${1//,/ }"
shift shift
;; ;;
@ -6500,13 +6500,13 @@ rule() {
shift shift
test ${noowner} -eq 0 && cmdnot="!" test ${noowner} -eq 0 && cmdnot="!"
fi fi
test ${softwarnings} -eq 1 -a ! "${cmd}" = "any" && softwarning "Overwritting param: cmd '${cmd}' becomes '${1}'" test ${softwarnings} -eq 1 -a ! "${cmd}" = "any" && softwarning "Overwriting param: cmd '${cmd}' becomes '${1}'"
test ${noowner} -eq 0 && cmd="${1}" test ${noowner} -eq 0 && cmd="${1}"
shift shift
;; ;;
custom|CUSTOM) custom|CUSTOM)
test ${softwarnings} -eq 1 -a ! -z "${custom}" && softwarning "Overwritting param: custom '${custom}' becomes '${2}'" test ${softwarnings} -eq 1 -a ! -z "${custom}" && softwarning "Overwriting param: custom '${custom}' becomes '${2}'"
custom="${2}" custom="${2}"
shift 2 shift 2
;; ;;
@ -6514,7 +6514,7 @@ rule() {
customin|CUSTOMIN|custom-in|CUSTOM-IN) customin|CUSTOMIN|custom-in|CUSTOM-IN)
if [ "${inout}" = "in" ] if [ "${inout}" = "in" ]
then then
test ${softwarnings} -eq 1 -a ! -z "${custom}" && softwarning "Overwritting param: custom '${custom}' becomes '${2}'" test ${softwarnings} -eq 1 -a ! -z "${custom}" && softwarning "Overwriting param: custom '${custom}' becomes '${2}'"
custom="${2}" custom="${2}"
fi fi
shift 2 shift 2
@ -6523,7 +6523,7 @@ rule() {
customout|CUSTOMOUT|custom-out|CUSTOM-OUT) customout|CUSTOMOUT|custom-out|CUSTOM-OUT)
if [ "${inout}" = "out" ] if [ "${inout}" = "out" ]
then then
test ${softwarnings} -eq 1 -a ! -z "${custom}" && softwarning "Overwritting param: custom '${custom}' becomes '${2}'" test ${softwarnings} -eq 1 -a ! -z "${custom}" && softwarning "Overwriting param: custom '${custom}' becomes '${2}'"
custom="${2}" custom="${2}"
fi fi
shift 2 shift 2
@ -6532,7 +6532,7 @@ rule() {
log|LOG) log|LOG)
if [ ${nolog} -eq 0 ] if [ ${nolog} -eq 0 ]
then then
test ${softwarnings} -eq 1 -a ! -z "${log}" && softwarning "Overwritting param: log '${log}/${logtxt}' becomes 'normal/${2}'" test ${softwarnings} -eq 1 -a ! -z "${log}" && softwarning "Overwriting param: log '${log}/${logtxt}' becomes 'normal/${2}'"
log=normal log=normal
logtxt="${2// /_}" logtxt="${2// /_}"
fi fi
@ -6549,7 +6549,7 @@ rule() {
loglimit|LOGLIMIT) loglimit|LOGLIMIT)
if [ ${nolog} -eq 0 ] if [ ${nolog} -eq 0 ]
then then
test ${softwarnings} -eq 1 -a ! -z "${log}" && softwarning "Overwritting param: log '${log}/${logtxt}' becomes 'limit/${2}'" test ${softwarnings} -eq 1 -a ! -z "${log}" && softwarning "Overwriting param: log '${log}/${logtxt}' becomes 'limit/${2}'"
log=limit log=limit
logtxt="${2// /_}" logtxt="${2// /_}"
fi fi
@ -6564,14 +6564,14 @@ rule() {
;; ;;
limit|LIMIT) limit|LIMIT)
test ${softwarnings} -eq 1 -a ! -z "${limit}" && softwarning "Overwritting param: limit '${limit}' becomes '${2}'" test ${softwarnings} -eq 1 -a ! -z "${limit}" && softwarning "Overwriting param: limit '${limit}' becomes '${2}'"
limit="${2}" limit="${2}"
burst="${3}" burst="${3}"
shift 3 shift 3
;; ;;
iplimit|IPLIMIT) iplimit|IPLIMIT)
test ${softwarnings} -eq 1 -a ! -z "${iplimit}" && softwarning "Overwritting param: iplimit '${iplimit}' becomes '${2}'" test ${softwarnings} -eq 1 -a ! -z "${iplimit}" && softwarning "Overwriting param: iplimit '${iplimit}' becomes '${2}'"
iplimit="${2}" iplimit="${2}"
iplimit_mask="${3}" iplimit_mask="${3}"
shift 3 shift 3