diff options
author | Florian Westphal <fw@strlen.de> | 2017-11-12 22:42:01 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-01-08 20:01:02 +0300 |
commit | 2c9e8637ea15cf7f060b48f73b79e5055ffa93ad (patch) | |
tree | f08d3e4ea6a20d0cc1364457d2bfb86e5dce0db8 /net/netfilter/nf_conntrack_proto_generic.c | |
parent | e8542dcec002b31339f7771441fd5dffb42223ae (diff) | |
download | linux-2c9e8637ea15cf7f060b48f73b79e5055ffa93ad.tar.xz |
netfilter: conntrack: timeouts can be const
Nowadays this is just the default template that is used when setting up
the net namespace, so nothing writes to these locations.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_conntrack_proto_generic.c')
-rw-r--r-- | net/netfilter/nf_conntrack_proto_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_proto_generic.c b/net/netfilter/nf_conntrack_proto_generic.c index f2d22442c89e..6c6896d21cd7 100644 --- a/net/netfilter/nf_conntrack_proto_generic.c +++ b/net/netfilter/nf_conntrack_proto_generic.c @@ -12,7 +12,7 @@ #include <linux/netfilter.h> #include <net/netfilter/nf_conntrack_l4proto.h> -static unsigned int nf_ct_generic_timeout __read_mostly = 600*HZ; +static const unsigned int nf_ct_generic_timeout = 600*HZ; static bool nf_generic_should_process(u8 proto) { |