aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_conntrack_proto_tcp.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-11-12 20:42:01 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-01-08 18:01:02 +0100
commit2c9e8637ea15cf7f060b48f73b79e5055ffa93ad (patch)
treef08d3e4ea6a20d0cc1364457d2bfb86e5dce0db8 /net/netfilter/nf_conntrack_proto_tcp.c
parentnetfilter: mark expected switch fall-throughs (diff)
downloadlinux-dev-2c9e8637ea15cf7f060b48f73b79e5055ffa93ad.tar.xz
linux-dev-2c9e8637ea15cf7f060b48f73b79e5055ffa93ad.zip
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 '')
-rw-r--r--net/netfilter/nf_conntrack_proto_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_proto_tcp.c b/net/netfilter/nf_conntrack_proto_tcp.c
index 44a6038f99bc..684cc29010a0 100644
--- a/net/netfilter/nf_conntrack_proto_tcp.c
+++ b/net/netfilter/nf_conntrack_proto_tcp.c
@@ -68,7 +68,7 @@ static const char *const tcp_conntrack_names[] = {
#define HOURS * 60 MINS
#define DAYS * 24 HOURS
-static unsigned int tcp_timeouts[TCP_CONNTRACK_TIMEOUT_MAX] __read_mostly = {
+static const unsigned int tcp_timeouts[TCP_CONNTRACK_TIMEOUT_MAX] = {
[TCP_CONNTRACK_SYN_SENT] = 2 MINS,
[TCP_CONNTRACK_SYN_RECV] = 60 SECS,
[TCP_CONNTRACK_ESTABLISHED] = 5 DAYS,