diff options
| author | Patrick McHardy <kaber@trash.net> | 2007-03-04 18:57:25 -0500 |
|---|---|---|
| committer | David S. Miller <davem@sunset.davemloft.net> | 2007-03-05 16:25:19 -0500 |
| commit | e281db5cdfc3ab077ab3e459d098cb4fde0bc57a (patch) | |
| tree | 608936adc43ceef89aa076c9e785100f382a6bed | |
| parent | ec68e97dedacc1c7fb20a4b23b7fa76bee56b5ff (diff) | |
[NETFILTER]: nf_conntrack/nf_nat: fix incorrect config ifdefs
The nf_conntrack_netlink config option is named CONFIG_NF_CT_NETLINK,
but multiple files use CONFIG_IP_NF_CONNTRACK_NETLINK or
CONFIG_NF_CONNTRACK_NETLINK for ifdefs.
Fix this and reformat all CONFIG_NF_CT_NETLINK ifdefs to only use a line.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c | 6 | ||||
| -rw-r--r-- | net/ipv4/netfilter/nf_conntrack_proto_icmp.c | 6 | ||||
| -rw-r--r-- | net/ipv4/netfilter/nf_nat_core.c | 3 | ||||
| -rw-r--r-- | net/ipv4/netfilter/nf_nat_proto_gre.c | 3 | ||||
| -rw-r--r-- | net/ipv4/netfilter/nf_nat_proto_icmp.c | 3 | ||||
| -rw-r--r-- | net/ipv4/netfilter/nf_nat_proto_tcp.c | 3 | ||||
| -rw-r--r-- | net/ipv4/netfilter/nf_nat_proto_udp.c | 3 | ||||
| -rw-r--r-- | net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c | 6 | ||||
| -rw-r--r-- | net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c | 6 | ||||
| -rw-r--r-- | net/netfilter/nf_conntrack_core.c | 3 | ||||
| -rw-r--r-- | net/netfilter/nf_conntrack_proto_gre.c | 3 | ||||
| -rw-r--r-- | net/netfilter/nf_conntrack_proto_tcp.c | 9 | ||||
| -rw-r--r-- | net/netfilter/nf_conntrack_proto_udp.c | 6 |
13 files changed, 20 insertions, 40 deletions
diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c index b984db771258..8f3e92d20df8 100644 --- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c +++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c | |||
| @@ -379,8 +379,7 @@ getorigdst(struct sock *sk, int optval, void __user *user, int *len) | |||
| 379 | return -ENOENT; | 379 | return -ENOENT; |
| 380 | } | 380 | } |
| 381 | 381 | ||
| 382 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 382 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 383 | defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
| 384 | 383 | ||
| 385 | #include <linux/netfilter/nfnetlink.h> | 384 | #include <linux/netfilter/nfnetlink.h> |
| 386 | #include <linux/netfilter/nfnetlink_conntrack.h> | 385 | #include <linux/netfilter/nfnetlink_conntrack.h> |
| @@ -435,8 +434,7 @@ struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv4 = { | |||
| 435 | .print_conntrack = ipv4_print_conntrack, | 434 | .print_conntrack = ipv4_print_conntrack, |
| 436 | .prepare = ipv4_prepare, | 435 | .prepare = ipv4_prepare, |
| 437 | .get_features = ipv4_get_features, | 436 | .get_features = ipv4_get_features, |
| 438 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 437 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 439 | defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
| 440 | .tuple_to_nfattr = ipv4_tuple_to_nfattr, | 438 | .tuple_to_nfattr = ipv4_tuple_to_nfattr, |
| 441 | .nfattr_to_tuple = ipv4_nfattr_to_tuple, | 439 | .nfattr_to_tuple = ipv4_nfattr_to_tuple, |
| 442 | #endif | 440 | #endif |
diff --git a/net/ipv4/netfilter/nf_conntrack_proto_icmp.c b/net/ipv4/netfilter/nf_conntrack_proto_icmp.c index 88cfa6aacfc1..5fd1e5363c1a 100644 --- a/net/ipv4/netfilter/nf_conntrack_proto_icmp.c +++ b/net/ipv4/netfilter/nf_conntrack_proto_icmp.c | |||
| @@ -268,8 +268,7 @@ icmp_error(struct sk_buff *skb, unsigned int dataoff, | |||
| 268 | return icmp_error_message(skb, ctinfo, hooknum); | 268 | return icmp_error_message(skb, ctinfo, hooknum); |
| 269 | } | 269 | } |
| 270 | 270 | ||
| 271 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 271 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 272 | defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
| 273 | 272 | ||
| 274 | #include <linux/netfilter/nfnetlink.h> | 273 | #include <linux/netfilter/nfnetlink.h> |
| 275 | #include <linux/netfilter/nfnetlink_conntrack.h> | 274 | #include <linux/netfilter/nfnetlink_conntrack.h> |
| @@ -368,8 +367,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_icmp = | |||
| 368 | .error = icmp_error, | 367 | .error = icmp_error, |
| 369 | .destroy = NULL, | 368 | .destroy = NULL, |
| 370 | .me = NULL, | 369 | .me = NULL, |
| 371 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 370 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 372 | defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
| 373 | .tuple_to_nfattr = icmp_tuple_to_nfattr, | 371 | .tuple_to_nfattr = icmp_tuple_to_nfattr, |
| 374 | .nfattr_to_tuple = icmp_nfattr_to_tuple, | 372 | .nfattr_to_tuple = icmp_nfattr_to_tuple, |
| 375 | #endif | 373 | #endif |
diff --git a/net/ipv4/netfilter/nf_nat_core.c b/net/ipv4/netfilter/nf_nat_core.c index 2c01378d3592..452e9d326684 100644 --- a/net/ipv4/netfilter/nf_nat_core.c +++ b/net/ipv4/netfilter/nf_nat_core.c | |||
| @@ -546,8 +546,7 @@ void nf_nat_protocol_unregister(struct nf_nat_protocol *proto) | |||
| 546 | } | 546 | } |
| 547 | EXPORT_SYMBOL(nf_nat_protocol_unregister); | 547 | EXPORT_SYMBOL(nf_nat_protocol_unregister); |
| 548 | 548 | ||
| 549 | #if defined(CONFIG_IP_NF_CONNTRACK_NETLINK) || \ | 549 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 550 | defined(CONFIG_IP_NF_CONNTRACK_NETLINK_MODULE) | ||
| 551 | int | 550 | int |
| 552 | nf_nat_port_range_to_nfattr(struct sk_buff *skb, | 551 | nf_nat_port_range_to_nfattr(struct sk_buff *skb, |
| 553 | const struct nf_nat_range *range) | 552 | const struct nf_nat_range *range) |
diff --git a/net/ipv4/netfilter/nf_nat_proto_gre.c b/net/ipv4/netfilter/nf_nat_proto_gre.c index d3de579e09d2..e5a34c17d927 100644 --- a/net/ipv4/netfilter/nf_nat_proto_gre.c +++ b/net/ipv4/netfilter/nf_nat_proto_gre.c | |||
| @@ -152,8 +152,7 @@ static struct nf_nat_protocol gre __read_mostly = { | |||
| 152 | .manip_pkt = gre_manip_pkt, | 152 | .manip_pkt = gre_manip_pkt, |
| 153 | .in_range = gre_in_range, | 153 | .in_range = gre_in_range, |
| 154 | .unique_tuple = gre_unique_tuple, | 154 | .unique_tuple = gre_unique_tuple, |
| 155 | #if defined(CONFIG_IP_NF_CONNTRACK_NETLINK) || \ | 155 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 156 | defined(CONFIG_IP_NF_CONNTRACK_NETLINK_MODULE) | ||
| 157 | .range_to_nfattr = nf_nat_port_range_to_nfattr, | 156 | .range_to_nfattr = nf_nat_port_range_to_nfattr, |
| 158 | .nfattr_to_range = nf_nat_port_nfattr_to_range, | 157 | .nfattr_to_range = nf_nat_port_nfattr_to_range, |
| 159 | #endif | 158 | #endif |
diff --git a/net/ipv4/netfilter/nf_nat_proto_icmp.c b/net/ipv4/netfilter/nf_nat_proto_icmp.c index 6bc2f06de055..f71ef9b5f428 100644 --- a/net/ipv4/netfilter/nf_nat_proto_icmp.c +++ b/net/ipv4/netfilter/nf_nat_proto_icmp.c | |||
| @@ -78,8 +78,7 @@ struct nf_nat_protocol nf_nat_protocol_icmp = { | |||
| 78 | .manip_pkt = icmp_manip_pkt, | 78 | .manip_pkt = icmp_manip_pkt, |
| 79 | .in_range = icmp_in_range, | 79 | .in_range = icmp_in_range, |
| 80 | .unique_tuple = icmp_unique_tuple, | 80 | .unique_tuple = icmp_unique_tuple, |
| 81 | #if defined(CONFIG_IP_NF_CONNTRACK_NETLINK) || \ | 81 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 82 | defined(CONFIG_IP_NF_CONNTRACK_NETLINK_MODULE) | ||
| 83 | .range_to_nfattr = nf_nat_port_range_to_nfattr, | 82 | .range_to_nfattr = nf_nat_port_range_to_nfattr, |
| 84 | .nfattr_to_range = nf_nat_port_nfattr_to_range, | 83 | .nfattr_to_range = nf_nat_port_nfattr_to_range, |
| 85 | #endif | 84 | #endif |
diff --git a/net/ipv4/netfilter/nf_nat_proto_tcp.c b/net/ipv4/netfilter/nf_nat_proto_tcp.c index 439164c7a626..123c95913f28 100644 --- a/net/ipv4/netfilter/nf_nat_proto_tcp.c +++ b/net/ipv4/netfilter/nf_nat_proto_tcp.c | |||
| @@ -144,8 +144,7 @@ struct nf_nat_protocol nf_nat_protocol_tcp = { | |||
| 144 | .manip_pkt = tcp_manip_pkt, | 144 | .manip_pkt = tcp_manip_pkt, |
| 145 | .in_range = tcp_in_range, | 145 | .in_range = tcp_in_range, |
| 146 | .unique_tuple = tcp_unique_tuple, | 146 | .unique_tuple = tcp_unique_tuple, |
| 147 | #if defined(CONFIG_IP_NF_CONNTRACK_NETLINK) || \ | 147 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 148 | defined(CONFIG_IP_NF_CONNTRACK_NETLINK_MODULE) | ||
| 149 | .range_to_nfattr = nf_nat_port_range_to_nfattr, | 148 | .range_to_nfattr = nf_nat_port_range_to_nfattr, |
| 150 | .nfattr_to_range = nf_nat_port_nfattr_to_range, | 149 | .nfattr_to_range = nf_nat_port_nfattr_to_range, |
| 151 | #endif | 150 | #endif |
diff --git a/net/ipv4/netfilter/nf_nat_proto_udp.c b/net/ipv4/netfilter/nf_nat_proto_udp.c index 8cae6e063bb6..1c4c70e25cd4 100644 --- a/net/ipv4/netfilter/nf_nat_proto_udp.c +++ b/net/ipv4/netfilter/nf_nat_proto_udp.c | |||
| @@ -134,8 +134,7 @@ struct nf_nat_protocol nf_nat_protocol_udp = { | |||
| 134 | .manip_pkt = udp_manip_pkt, | 134 | .manip_pkt = udp_manip_pkt, |
| 135 | .in_range = udp_in_range, | 135 | .in_range = udp_in_range, |
| 136 | .unique_tuple = udp_unique_tuple, | 136 | .unique_tuple = udp_unique_tuple, |
| 137 | #if defined(CONFIG_IP_NF_CONNTRACK_NETLINK) || \ | 137 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 138 | defined(CONFIG_IP_NF_CONNTRACK_NETLINK_MODULE) | ||
| 139 | .range_to_nfattr = nf_nat_port_range_to_nfattr, | 138 | .range_to_nfattr = nf_nat_port_range_to_nfattr, |
| 140 | .nfattr_to_range = nf_nat_port_nfattr_to_range, | 139 | .nfattr_to_range = nf_nat_port_nfattr_to_range, |
| 141 | #endif | 140 | #endif |
diff --git a/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c b/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c index 4b7be4bb4d03..6f19c4a49560 100644 --- a/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c +++ b/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c | |||
| @@ -353,8 +353,7 @@ static ctl_table nf_ct_ipv6_sysctl_table[] = { | |||
| 353 | }; | 353 | }; |
| 354 | #endif | 354 | #endif |
| 355 | 355 | ||
| 356 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 356 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 357 | defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
| 358 | 357 | ||
| 359 | #include <linux/netfilter/nfnetlink.h> | 358 | #include <linux/netfilter/nfnetlink.h> |
| 360 | #include <linux/netfilter/nfnetlink_conntrack.h> | 359 | #include <linux/netfilter/nfnetlink_conntrack.h> |
| @@ -403,8 +402,7 @@ struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv6 = { | |||
| 403 | .print_tuple = ipv6_print_tuple, | 402 | .print_tuple = ipv6_print_tuple, |
| 404 | .print_conntrack = ipv6_print_conntrack, | 403 | .print_conntrack = ipv6_print_conntrack, |
| 405 | .prepare = ipv6_prepare, | 404 | .prepare = ipv6_prepare, |
| 406 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 405 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 407 | defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
| 408 | .tuple_to_nfattr = ipv6_tuple_to_nfattr, | 406 | .tuple_to_nfattr = ipv6_tuple_to_nfattr, |
| 409 | .nfattr_to_tuple = ipv6_nfattr_to_tuple, | 407 | .nfattr_to_tuple = ipv6_nfattr_to_tuple, |
| 410 | #endif | 408 | #endif |
diff --git a/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c b/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c index 21f19cc719f3..075da4f287b8 100644 --- a/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c +++ b/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c | |||
| @@ -244,8 +244,7 @@ icmpv6_error(struct sk_buff *skb, unsigned int dataoff, | |||
| 244 | return icmpv6_error_message(skb, dataoff, ctinfo, hooknum); | 244 | return icmpv6_error_message(skb, dataoff, ctinfo, hooknum); |
| 245 | } | 245 | } |
| 246 | 246 | ||
| 247 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 247 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 248 | defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
| 249 | 248 | ||
| 250 | #include <linux/netfilter/nfnetlink.h> | 249 | #include <linux/netfilter/nfnetlink.h> |
| 251 | #include <linux/netfilter/nfnetlink_conntrack.h> | 250 | #include <linux/netfilter/nfnetlink_conntrack.h> |
| @@ -327,8 +326,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_icmpv6 = | |||
| 327 | .packet = icmpv6_packet, | 326 | .packet = icmpv6_packet, |
| 328 | .new = icmpv6_new, | 327 | .new = icmpv6_new, |
| 329 | .error = icmpv6_error, | 328 | .error = icmpv6_error, |
| 330 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 329 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 331 | defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
| 332 | .tuple_to_nfattr = icmpv6_tuple_to_nfattr, | 330 | .tuple_to_nfattr = icmpv6_tuple_to_nfattr, |
| 333 | .nfattr_to_tuple = icmpv6_nfattr_to_tuple, | 331 | .nfattr_to_tuple = icmpv6_nfattr_to_tuple, |
| 334 | #endif | 332 | #endif |
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index 4fdf4849baf8..b3a70eb6d42a 100644 --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c | |||
| @@ -976,8 +976,7 @@ void __nf_ct_refresh_acct(struct nf_conn *ct, | |||
| 976 | } | 976 | } |
| 977 | EXPORT_SYMBOL_GPL(__nf_ct_refresh_acct); | 977 | EXPORT_SYMBOL_GPL(__nf_ct_refresh_acct); |
| 978 | 978 | ||
| 979 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 979 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 980 | defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
| 981 | 980 | ||
| 982 | #include <linux/netfilter/nfnetlink.h> | 981 | #include <linux/netfilter/nfnetlink.h> |
| 983 | #include <linux/netfilter/nfnetlink_conntrack.h> | 982 | #include <linux/netfilter/nfnetlink_conntrack.h> |
diff --git a/net/netfilter/nf_conntrack_proto_gre.c b/net/netfilter/nf_conntrack_proto_gre.c index ac193ce70249..5434472420fe 100644 --- a/net/netfilter/nf_conntrack_proto_gre.c +++ b/net/netfilter/nf_conntrack_proto_gre.c | |||
| @@ -281,8 +281,7 @@ static struct nf_conntrack_l4proto nf_conntrack_l4proto_gre4 = { | |||
| 281 | .new = gre_new, | 281 | .new = gre_new, |
| 282 | .destroy = gre_destroy, | 282 | .destroy = gre_destroy, |
| 283 | .me = THIS_MODULE, | 283 | .me = THIS_MODULE, |
| 284 | #if defined(CONFIG_NF_CONNTRACK_NETLINK) || \ | 284 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 285 | defined(CONFIG_NF_CONNTRACK_NETLINK_MODULE) | ||
| 286 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, | 285 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, |
| 287 | .nfattr_to_tuple = nf_ct_port_nfattr_to_tuple, | 286 | .nfattr_to_tuple = nf_ct_port_nfattr_to_tuple, |
| 288 | #endif | 287 | #endif |
diff --git a/net/netfilter/nf_conntrack_proto_tcp.c b/net/netfilter/nf_conntrack_proto_tcp.c index 069b85ca51cd..3b9ad7f6eb5d 100644 --- a/net/netfilter/nf_conntrack_proto_tcp.c +++ b/net/netfilter/nf_conntrack_proto_tcp.c | |||
| @@ -1099,8 +1099,7 @@ static int tcp_new(struct nf_conn *conntrack, | |||
| 1099 | return 1; | 1099 | return 1; |
| 1100 | } | 1100 | } |
| 1101 | 1101 | ||
| 1102 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 1102 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 1103 | defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
| 1104 | 1103 | ||
| 1105 | #include <linux/netfilter/nfnetlink.h> | 1104 | #include <linux/netfilter/nfnetlink.h> |
| 1106 | #include <linux/netfilter/nfnetlink_conntrack.h> | 1105 | #include <linux/netfilter/nfnetlink_conntrack.h> |
| @@ -1378,8 +1377,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_tcp4 = | |||
| 1378 | .packet = tcp_packet, | 1377 | .packet = tcp_packet, |
| 1379 | .new = tcp_new, | 1378 | .new = tcp_new, |
| 1380 | .error = tcp_error, | 1379 | .error = tcp_error, |
| 1381 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 1380 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 1382 | defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
| 1383 | .to_nfattr = tcp_to_nfattr, | 1381 | .to_nfattr = tcp_to_nfattr, |
| 1384 | .from_nfattr = nfattr_to_tcp, | 1382 | .from_nfattr = nfattr_to_tcp, |
| 1385 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, | 1383 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, |
| @@ -1408,8 +1406,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_tcp6 = | |||
| 1408 | .packet = tcp_packet, | 1406 | .packet = tcp_packet, |
| 1409 | .new = tcp_new, | 1407 | .new = tcp_new, |
| 1410 | .error = tcp_error, | 1408 | .error = tcp_error, |
| 1411 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 1409 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 1412 | defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
| 1413 | .to_nfattr = tcp_to_nfattr, | 1410 | .to_nfattr = tcp_to_nfattr, |
| 1414 | .from_nfattr = nfattr_to_tcp, | 1411 | .from_nfattr = nfattr_to_tcp, |
| 1415 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, | 1412 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, |
diff --git a/net/netfilter/nf_conntrack_proto_udp.c b/net/netfilter/nf_conntrack_proto_udp.c index d0a1cee7ee52..a5e5726ec0c7 100644 --- a/net/netfilter/nf_conntrack_proto_udp.c +++ b/net/netfilter/nf_conntrack_proto_udp.c | |||
| @@ -208,8 +208,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udp4 = | |||
| 208 | .packet = udp_packet, | 208 | .packet = udp_packet, |
| 209 | .new = udp_new, | 209 | .new = udp_new, |
| 210 | .error = udp_error, | 210 | .error = udp_error, |
| 211 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 211 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 212 | defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
| 213 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, | 212 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, |
| 214 | .nfattr_to_tuple = nf_ct_port_nfattr_to_tuple, | 213 | .nfattr_to_tuple = nf_ct_port_nfattr_to_tuple, |
| 215 | #endif | 214 | #endif |
| @@ -236,8 +235,7 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udp6 = | |||
| 236 | .packet = udp_packet, | 235 | .packet = udp_packet, |
| 237 | .new = udp_new, | 236 | .new = udp_new, |
| 238 | .error = udp_error, | 237 | .error = udp_error, |
| 239 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 238 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
| 240 | defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
| 241 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, | 239 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, |
| 242 | .nfattr_to_tuple = nf_ct_port_nfattr_to_tuple, | 240 | .nfattr_to_tuple = nf_ct_port_nfattr_to_tuple, |
| 243 | #endif | 241 | #endif |
