summaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorTonghao Zhang <xiangxia.m.yue@gmail.com>2019-04-07 17:14:20 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-04-30 14:18:56 +0200
commit8f14c99c7edaaba9c0bb1727d44db6ebf157cc61 (patch)
treec4af67ed0759fccd040c094f9219ef32ef094181 /include/net/netns
parentnetfilter: nf_tables: drop include of module.h from nf_tables.h (diff)
downloadlinux-8f14c99c7edaaba9c0bb1727d44db6ebf157cc61.tar.xz
linux-8f14c99c7edaaba9c0bb1727d44db6ebf157cc61.zip
netfilter: conntrack: limit sysctl setting for boolean options
We use the zero and one to limit the boolean options setting. After this patch we only set 0 or 1 to boolean options for nf conntrack sysctl. Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netns')
-rw-r--r--include/net/netns/conntrack.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/netns/conntrack.h b/include/net/netns/conntrack.h
index f19b53130bf7..806454e767bf 100644
--- a/include/net/netns/conntrack.h
+++ b/include/net/netns/conntrack.h
@@ -24,9 +24,9 @@ struct nf_generic_net {
struct nf_tcp_net {
unsigned int timeouts[TCP_CONNTRACK_TIMEOUT_MAX];
- unsigned int tcp_loose;
- unsigned int tcp_be_liberal;
- unsigned int tcp_max_retrans;
+ int tcp_loose;
+ int tcp_be_liberal;
+ int tcp_max_retrans;
};
enum udp_conntrack {