From: Pablo Neira Ayuso Date: Fri, 29 Jun 2012 05:23:25 +0000 (+0000) Subject: netfilter: nf_ct_tcp: missing per-net support for cttimeout X-Git-Tag: v5.15~21999^2~281^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=be0593c678249cbb32c6096a705f05a9834e257d;p=mirror_ubuntu-kernels.git netfilter: nf_ct_tcp: missing per-net support for cttimeout This patch adds missing per-net support for the cttimeout infrastructure to TCP. Signed-off-by: Pablo Neira Ayuso Acked-by: Gao feng --- diff --git a/net/netfilter/nf_conntrack_proto_tcp.c b/net/netfilter/nf_conntrack_proto_tcp.c index 07e56ea2e9bf..a5ac11ebef33 100644 --- a/net/netfilter/nf_conntrack_proto_tcp.c +++ b/net/netfilter/nf_conntrack_proto_tcp.c @@ -821,7 +821,7 @@ static int tcp_error(struct net *net, struct nf_conn *tmpl, static unsigned int *tcp_get_timeouts(struct net *net) { - return tcp_timeouts; + return tcp_pernet(net)->timeouts; } /* Returns verdict for packet, or -1 for invalid. */