mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 14:19:16 +00:00
Merge branch 'nf' of git://1984.lsi.us.es/net
This commit is contained in:
commit
6350323ad8
1 changed files with 3 additions and 3 deletions
|
@ -87,10 +87,10 @@ connbytes_mt(const struct sk_buff *skb, struct xt_action_param *par)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sinfo->count.to)
|
if (sinfo->count.to >= sinfo->count.from)
|
||||||
return what <= sinfo->count.to && what >= sinfo->count.from;
|
return what <= sinfo->count.to && what >= sinfo->count.from;
|
||||||
else
|
else /* inverted */
|
||||||
return what >= sinfo->count.from;
|
return what < sinfo->count.to || what > sinfo->count.from;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int connbytes_mt_check(const struct xt_mtchk_param *par)
|
static int connbytes_mt_check(const struct xt_mtchk_param *par)
|
||||||
|
|
Loading…
Reference in a new issue