diff options
author | Hagen Paul Pfeifer <hagen@jauu.net> | 2009-02-20 04:47:09 -0500 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-02-20 04:47:09 -0500 |
commit | e478075c6f07a383c378fb400edc1a7407a941b0 (patch) | |
tree | 0eb38291887bde44db0f6256c449401c0ab41000 /net | |
parent | 784544739a25c30637397ace5489eeb6e15d7d49 (diff) |
netfilter: nf_conntrack: table max size should hold at least table size
Table size is defined as unsigned, wheres the table maximum size is
defined as a signed integer. The calculation of max is 8 or 4,
multiplied the table size. Therefore the max value is aligned to
unsigned.
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nf_conntrack_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index 90ce9ddb9451..f3aa4e65b15e 100644 --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c | |||
@@ -54,7 +54,7 @@ EXPORT_SYMBOL_GPL(nf_conntrack_lock); | |||
54 | unsigned int nf_conntrack_htable_size __read_mostly; | 54 | unsigned int nf_conntrack_htable_size __read_mostly; |
55 | EXPORT_SYMBOL_GPL(nf_conntrack_htable_size); | 55 | EXPORT_SYMBOL_GPL(nf_conntrack_htable_size); |
56 | 56 | ||
57 | int nf_conntrack_max __read_mostly; | 57 | unsigned int nf_conntrack_max __read_mostly; |
58 | EXPORT_SYMBOL_GPL(nf_conntrack_max); | 58 | EXPORT_SYMBOL_GPL(nf_conntrack_max); |
59 | 59 | ||
60 | struct nf_conn nf_conntrack_untracked __read_mostly; | 60 | struct nf_conn nf_conntrack_untracked __read_mostly; |