Return-Path: From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Pablo Neira Ayuso , Sasha Levin Subject: [PATCH AUTOSEL 4.14 26/37] netfilter: conntrack: timeout interface depend on CONFIG_NF_CONNTRACK_TIMEOUT Date: Mon, 1 Oct 2018 00:39:09 +0000 Message-ID: <20181001003850.147107-26-alexander.levin@microsoft.com> References: <20181001003850.147107-1-alexander.levin@microsoft.com> In-Reply-To: <20181001003850.147107-1-alexander.levin@microsoft.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: From: Pablo Neira Ayuso [ Upstream commit a874752a10da113f513980e28f562d946d3f829d ] Now that cttimeout support for nft_ct is in place, these should depend on CONFIG_NF_CONNTRACK_TIMEOUT otherwise we can crash when dumping the policy if this option is not enabled. [ 71.600121] BUG: unable to handle kernel NULL pointer dereference at 000= 0000000000000 [...] [ 71.600141] CPU: 3 PID: 7612 Comm: nft Not tainted 4.18.0+ #246 [...] [ 71.600188] Call Trace: [ 71.600201] ? nft_ct_timeout_obj_dump+0xc6/0xf0 [nft_ct] Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- net/ipv4/netfilter/nf_conntrack_proto_icmp.c | 8 ++++---- .../netfilter/nf_conntrack_proto_icmpv6.c | 8 ++++---- net/netfilter/nf_conntrack_proto_dccp.c | 12 +++++------ net/netfilter/nf_conntrack_proto_generic.c | 8 ++++---- net/netfilter/nf_conntrack_proto_gre.c | 8 ++++---- net/netfilter/nf_conntrack_proto_sctp.c | 14 ++++++------- net/netfilter/nf_conntrack_proto_tcp.c | 12 +++++------ net/netfilter/nf_conntrack_proto_udp.c | 20 +++++++++---------- 8 files changed, 45 insertions(+), 45 deletions(-) diff --git a/net/ipv4/netfilter/nf_conntrack_proto_icmp.c b/net/ipv4/netfil= ter/nf_conntrack_proto_icmp.c index a046c298413a..06c986f771f2 100644 --- a/net/ipv4/netfilter/nf_conntrack_proto_icmp.c +++ b/net/ipv4/netfilter/nf_conntrack_proto_icmp.c @@ -265,7 +265,7 @@ static int icmp_nlattr_tuple_size(void) } #endif =20 -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT =20 #include #include @@ -303,7 +303,7 @@ static const struct nla_policy icmp_timeout_nla_policy[CTA_TIMEOUT_ICMP_MAX+1] =3D { [CTA_TIMEOUT_ICMP_TIMEOUT] =3D { .type =3D NLA_U32 }, }; -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ =20 #ifdef CONFIG_SYSCTL static struct ctl_table icmp_sysctl_table[] =3D { @@ -365,7 +365,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_icmp _= _read_mostly =3D .nlattr_to_tuple =3D icmp_nlattr_to_tuple, .nla_policy =3D icmp_nla_policy, #endif -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT .ctnl_timeout =3D { .nlattr_to_obj =3D icmp_timeout_nlattr_to_obj, .obj_to_nlattr =3D icmp_timeout_obj_to_nlattr, @@ -373,7 +373,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_icmp _= _read_mostly =3D .obj_size =3D sizeof(unsigned int), .nla_policy =3D icmp_timeout_nla_policy, }, -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ .init_net =3D icmp_init_net, .get_net_proto =3D icmp_get_net_proto, }; diff --git a/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c b/net/ipv6/netf= ilter/nf_conntrack_proto_icmpv6.c index a9e1fd1a8536..dcc161b9ea8d 100644 --- a/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c +++ b/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c @@ -264,7 +264,7 @@ static int icmpv6_nlattr_tuple_size(void) } #endif =20 -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT =20 #include #include @@ -302,7 +302,7 @@ static const struct nla_policy icmpv6_timeout_nla_policy[CTA_TIMEOUT_ICMPV6_MAX+1] =3D { [CTA_TIMEOUT_ICMPV6_TIMEOUT] =3D { .type =3D NLA_U32 }, }; -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ =20 #ifdef CONFIG_SYSCTL static struct ctl_table icmpv6_sysctl_table[] =3D { @@ -362,7 +362,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_icmpv6= __read_mostly =3D .nlattr_to_tuple =3D icmpv6_nlattr_to_tuple, .nla_policy =3D icmpv6_nla_policy, #endif -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT .ctnl_timeout =3D { .nlattr_to_obj =3D icmpv6_timeout_nlattr_to_obj, .obj_to_nlattr =3D icmpv6_timeout_obj_to_nlattr, @@ -370,7 +370,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_icmpv6= __read_mostly =3D .obj_size =3D sizeof(unsigned int), .nla_policy =3D icmpv6_timeout_nla_policy, }, -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ .init_net =3D icmpv6_init_net, .get_net_proto =3D icmpv6_get_net_proto, }; diff --git a/net/netfilter/nf_conntrack_proto_dccp.c b/net/netfilter/nf_con= ntrack_proto_dccp.c index 812de5496b37..46f9dd4737c1 100644 --- a/net/netfilter/nf_conntrack_proto_dccp.c +++ b/net/netfilter/nf_conntrack_proto_dccp.c @@ -709,7 +709,7 @@ static int dccp_nlattr_size(void) =20 #endif =20 -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT =20 #include #include @@ -760,7 +760,7 @@ dccp_timeout_nla_policy[CTA_TIMEOUT_DCCP_MAX+1] =3D { [CTA_TIMEOUT_DCCP_CLOSING] =3D { .type =3D NLA_U32 }, [CTA_TIMEOUT_DCCP_TIMEWAIT] =3D { .type =3D NLA_U32 }, }; -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ =20 #ifdef CONFIG_SYSCTL /* template, data assigned later */ @@ -893,7 +893,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_dccp4 = __read_mostly =3D { .nlattr_to_tuple =3D nf_ct_port_nlattr_to_tuple, .nla_policy =3D nf_ct_port_nla_policy, #endif -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT .ctnl_timeout =3D { .nlattr_to_obj =3D dccp_timeout_nlattr_to_obj, .obj_to_nlattr =3D dccp_timeout_obj_to_nlattr, @@ -901,7 +901,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_dccp4 = __read_mostly =3D { .obj_size =3D sizeof(unsigned int) * CT_DCCP_MAX, .nla_policy =3D dccp_timeout_nla_policy, }, -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ .init_net =3D dccp_init_net, .get_net_proto =3D dccp_get_net_proto, }; @@ -929,7 +929,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_dccp6 = __read_mostly =3D { .nlattr_to_tuple =3D nf_ct_port_nlattr_to_tuple, .nla_policy =3D nf_ct_port_nla_policy, #endif -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT .ctnl_timeout =3D { .nlattr_to_obj =3D dccp_timeout_nlattr_to_obj, .obj_to_nlattr =3D dccp_timeout_obj_to_nlattr, @@ -937,7 +937,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_dccp6 = __read_mostly =3D { .obj_size =3D sizeof(unsigned int) * CT_DCCP_MAX, .nla_policy =3D dccp_timeout_nla_policy, }, -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ .init_net =3D dccp_init_net, .get_net_proto =3D dccp_get_net_proto, }; diff --git a/net/netfilter/nf_conntrack_proto_generic.c b/net/netfilter/nf_= conntrack_proto_generic.c index 9cd40700842e..f2ad4aebc816 100644 --- a/net/netfilter/nf_conntrack_proto_generic.c +++ b/net/netfilter/nf_conntrack_proto_generic.c @@ -80,7 +80,7 @@ static bool generic_new(struct nf_conn *ct, const struct = sk_buff *skb, return ret; } =20 -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT =20 #include #include @@ -120,7 +120,7 @@ static const struct nla_policy generic_timeout_nla_policy[CTA_TIMEOUT_GENERIC_MAX+1] =3D { [CTA_TIMEOUT_GENERIC_TIMEOUT] =3D { .type =3D NLA_U32 }, }; -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ =20 #ifdef CONFIG_SYSCTL static struct ctl_table generic_sysctl_table[] =3D { @@ -173,7 +173,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_generi= c __read_mostly =3D .packet =3D generic_packet, .get_timeouts =3D generic_get_timeouts, .new =3D generic_new, -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT .ctnl_timeout =3D { .nlattr_to_obj =3D generic_timeout_nlattr_to_obj, .obj_to_nlattr =3D generic_timeout_obj_to_nlattr, @@ -181,7 +181,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_generi= c __read_mostly =3D .obj_size =3D sizeof(unsigned int), .nla_policy =3D generic_timeout_nla_policy, }, -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ .init_net =3D generic_init_net, .get_net_proto =3D generic_get_net_proto, }; diff --git a/net/netfilter/nf_conntrack_proto_gre.c b/net/netfilter/nf_conn= track_proto_gre.c index 09a90484c27d..001b746a8e20 100644 --- a/net/netfilter/nf_conntrack_proto_gre.c +++ b/net/netfilter/nf_conntrack_proto_gre.c @@ -290,7 +290,7 @@ static void gre_destroy(struct nf_conn *ct) nf_ct_gre_keymap_destroy(master); } =20 -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT =20 #include #include @@ -337,7 +337,7 @@ gre_timeout_nla_policy[CTA_TIMEOUT_GRE_MAX+1] =3D { [CTA_TIMEOUT_GRE_UNREPLIED] =3D { .type =3D NLA_U32 }, [CTA_TIMEOUT_GRE_REPLIED] =3D { .type =3D NLA_U32 }, }; -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ =20 static int gre_init_net(struct net *net, u_int16_t proto) { @@ -372,7 +372,7 @@ static struct nf_conntrack_l4proto nf_conntrack_l4proto= _gre4 __read_mostly =3D { .nlattr_to_tuple =3D nf_ct_port_nlattr_to_tuple, .nla_policy =3D nf_ct_port_nla_policy, #endif -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT .ctnl_timeout =3D { .nlattr_to_obj =3D gre_timeout_nlattr_to_obj, .obj_to_nlattr =3D gre_timeout_obj_to_nlattr, @@ -380,7 +380,7 @@ static struct nf_conntrack_l4proto nf_conntrack_l4proto= _gre4 __read_mostly =3D { .obj_size =3D sizeof(unsigned int) * GRE_CT_MAX, .nla_policy =3D gre_timeout_nla_policy, }, -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ .net_id =3D &proto_gre_net_id, .init_net =3D gre_init_net, }; diff --git a/net/netfilter/nf_conntrack_proto_sctp.c b/net/netfilter/nf_con= ntrack_proto_sctp.c index 6303a88af12b..bb0e8e1a5996 100644 --- a/net/netfilter/nf_conntrack_proto_sctp.c +++ b/net/netfilter/nf_conntrack_proto_sctp.c @@ -618,7 +618,7 @@ static int sctp_nlattr_size(void) } #endif =20 -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT =20 #include #include @@ -671,7 +671,7 @@ sctp_timeout_nla_policy[CTA_TIMEOUT_SCTP_MAX+1] =3D { [CTA_TIMEOUT_SCTP_HEARTBEAT_SENT] =3D { .type =3D NLA_U32 }, [CTA_TIMEOUT_SCTP_HEARTBEAT_ACKED] =3D { .type =3D NLA_U32 }, }; -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ =20 =20 #ifdef CONFIG_SYSCTL @@ -803,7 +803,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_sctp4 = __read_mostly =3D { .nlattr_to_tuple =3D nf_ct_port_nlattr_to_tuple, .nla_policy =3D nf_ct_port_nla_policy, #endif -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT .ctnl_timeout =3D { .nlattr_to_obj =3D sctp_timeout_nlattr_to_obj, .obj_to_nlattr =3D sctp_timeout_obj_to_nlattr, @@ -811,7 +811,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_sctp4 = __read_mostly =3D { .obj_size =3D sizeof(unsigned int) * SCTP_CONNTRACK_MAX, .nla_policy =3D sctp_timeout_nla_policy, }, -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ .init_net =3D sctp_init_net, .get_net_proto =3D sctp_get_net_proto, }; @@ -839,7 +839,8 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_sctp6 = __read_mostly =3D { .nlattr_tuple_size =3D nf_ct_port_nlattr_tuple_size, .nlattr_to_tuple =3D nf_ct_port_nlattr_to_tuple, .nla_policy =3D nf_ct_port_nla_policy, -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#endif +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT .ctnl_timeout =3D { .nlattr_to_obj =3D sctp_timeout_nlattr_to_obj, .obj_to_nlattr =3D sctp_timeout_obj_to_nlattr, @@ -847,8 +848,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_sctp6 = __read_mostly =3D { .obj_size =3D sizeof(unsigned int) * SCTP_CONNTRACK_MAX, .nla_policy =3D sctp_timeout_nla_policy, }, -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ -#endif +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ .init_net =3D sctp_init_net, .get_net_proto =3D sctp_get_net_proto, }; diff --git a/net/netfilter/nf_conntrack_proto_tcp.c b/net/netfilter/nf_conn= track_proto_tcp.c index cba1c6ffe51a..bf4f003ce5a3 100644 --- a/net/netfilter/nf_conntrack_proto_tcp.c +++ b/net/netfilter/nf_conntrack_proto_tcp.c @@ -1294,7 +1294,7 @@ static int tcp_nlattr_tuple_size(void) } #endif =20 -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT =20 #include #include @@ -1404,7 +1404,7 @@ static const struct nla_policy tcp_timeout_nla_policy= [CTA_TIMEOUT_TCP_MAX+1] =3D { [CTA_TIMEOUT_TCP_RETRANS] =3D { .type =3D NLA_U32 }, [CTA_TIMEOUT_TCP_UNACK] =3D { .type =3D NLA_U32 }, }; -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ =20 #ifdef CONFIG_SYSCTL static struct ctl_table tcp_sysctl_table[] =3D { @@ -1567,7 +1567,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_tcp4= __read_mostly =3D .nlattr_tuple_size =3D tcp_nlattr_tuple_size, .nla_policy =3D nf_ct_port_nla_policy, #endif -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT .ctnl_timeout =3D { .nlattr_to_obj =3D tcp_timeout_nlattr_to_obj, .obj_to_nlattr =3D tcp_timeout_obj_to_nlattr, @@ -1576,7 +1576,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_tcp4= __read_mostly =3D TCP_CONNTRACK_TIMEOUT_MAX, .nla_policy =3D tcp_timeout_nla_policy, }, -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ .init_net =3D tcp_init_net, .get_net_proto =3D tcp_get_net_proto, }; @@ -1605,7 +1605,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_tcp6= __read_mostly =3D .nlattr_tuple_size =3D tcp_nlattr_tuple_size, .nla_policy =3D nf_ct_port_nla_policy, #endif -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT .ctnl_timeout =3D { .nlattr_to_obj =3D tcp_timeout_nlattr_to_obj, .obj_to_nlattr =3D tcp_timeout_obj_to_nlattr, @@ -1614,7 +1614,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_tcp6= __read_mostly =3D TCP_CONNTRACK_TIMEOUT_MAX, .nla_policy =3D tcp_timeout_nla_policy, }, -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ .init_net =3D tcp_init_net, .get_net_proto =3D tcp_get_net_proto, }; diff --git a/net/netfilter/nf_conntrack_proto_udp.c b/net/netfilter/nf_conn= track_proto_udp.c index 8af734cd1a94..47ac535744be 100644 --- a/net/netfilter/nf_conntrack_proto_udp.c +++ b/net/netfilter/nf_conntrack_proto_udp.c @@ -195,7 +195,7 @@ static int udp_error(struct net *net, struct nf_conn *t= mpl, struct sk_buff *skb, return NF_ACCEPT; } =20 -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT =20 #include #include @@ -242,7 +242,7 @@ udp_timeout_nla_policy[CTA_TIMEOUT_UDP_MAX+1] =3D { [CTA_TIMEOUT_UDP_UNREPLIED] =3D { .type =3D NLA_U32 }, [CTA_TIMEOUT_UDP_REPLIED] =3D { .type =3D NLA_U32 }, }; -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ =20 #ifdef CONFIG_SYSCTL static struct ctl_table udp_sysctl_table[] =3D { @@ -316,7 +316,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udp4 _= _read_mostly =3D .nlattr_tuple_size =3D nf_ct_port_nlattr_tuple_size, .nla_policy =3D nf_ct_port_nla_policy, #endif -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT .ctnl_timeout =3D { .nlattr_to_obj =3D udp_timeout_nlattr_to_obj, .obj_to_nlattr =3D udp_timeout_obj_to_nlattr, @@ -324,7 +324,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udp4 _= _read_mostly =3D .obj_size =3D sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX, .nla_policy =3D udp_timeout_nla_policy, }, -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ .init_net =3D udp_init_net, .get_net_proto =3D udp_get_net_proto, }; @@ -348,7 +348,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udplit= e4 __read_mostly =3D .nlattr_tuple_size =3D nf_ct_port_nlattr_tuple_size, .nla_policy =3D nf_ct_port_nla_policy, #endif -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT .ctnl_timeout =3D { .nlattr_to_obj =3D udp_timeout_nlattr_to_obj, .obj_to_nlattr =3D udp_timeout_obj_to_nlattr, @@ -356,7 +356,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udplit= e4 __read_mostly =3D .obj_size =3D sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX, .nla_policy =3D udp_timeout_nla_policy, }, -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ .init_net =3D udp_init_net, .get_net_proto =3D udp_get_net_proto, }; @@ -380,7 +380,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udp6 _= _read_mostly =3D .nlattr_tuple_size =3D nf_ct_port_nlattr_tuple_size, .nla_policy =3D nf_ct_port_nla_policy, #endif -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT .ctnl_timeout =3D { .nlattr_to_obj =3D udp_timeout_nlattr_to_obj, .obj_to_nlattr =3D udp_timeout_obj_to_nlattr, @@ -388,7 +388,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udp6 _= _read_mostly =3D .obj_size =3D sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX, .nla_policy =3D udp_timeout_nla_policy, }, -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ .init_net =3D udp_init_net, .get_net_proto =3D udp_get_net_proto, }; @@ -412,7 +412,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udplit= e6 __read_mostly =3D .nlattr_tuple_size =3D nf_ct_port_nlattr_tuple_size, .nla_policy =3D nf_ct_port_nla_policy, #endif -#if IS_ENABLED(CONFIG_NF_CT_NETLINK_TIMEOUT) +#ifdef CONFIG_NF_CONNTRACK_TIMEOUT .ctnl_timeout =3D { .nlattr_to_obj =3D udp_timeout_nlattr_to_obj, .obj_to_nlattr =3D udp_timeout_obj_to_nlattr, @@ -420,7 +420,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udplit= e6 __read_mostly =3D .obj_size =3D sizeof(unsigned int) * CTA_TIMEOUT_UDP_MAX, .nla_policy =3D udp_timeout_nla_policy, }, -#endif /* CONFIG_NF_CT_NETLINK_TIMEOUT */ +#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */ .init_net =3D udp_init_net, .get_net_proto =3D udp_get_net_proto, }; --=20 2.17.1