diff options
-rw-r--r-- | include/net/netfilter/ipv4/nf_conntrack_ipv4.h | 2 | ||||
-rw-r--r-- | include/net/netfilter/nf_conntrack_l3proto.h | 1 | ||||
-rw-r--r-- | net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c | 6 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_core.c | 15 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_proto.c | 6 |
5 files changed, 0 insertions, 30 deletions
diff --git a/include/net/netfilter/ipv4/nf_conntrack_ipv4.h b/include/net/netfilter/ipv4/nf_conntrack_ipv4.h index 6c3d12e2949f..981c327374da 100644 --- a/include/net/netfilter/ipv4/nf_conntrack_ipv4.h +++ b/include/net/netfilter/ipv4/nf_conntrack_ipv4.h | |||
@@ -19,6 +19,4 @@ extern struct nf_conntrack_l4proto nf_conntrack_l4proto_icmp; | |||
19 | int nf_conntrack_ipv4_compat_init(void); | 19 | int nf_conntrack_ipv4_compat_init(void); |
20 | void nf_conntrack_ipv4_compat_fini(void); | 20 | void nf_conntrack_ipv4_compat_fini(void); |
21 | 21 | ||
22 | void need_ipv4_conntrack(void); | ||
23 | |||
24 | #endif /*_NF_CONNTRACK_IPV4_H*/ | 22 | #endif /*_NF_CONNTRACK_IPV4_H*/ |
diff --git a/include/net/netfilter/nf_conntrack_l3proto.h b/include/net/netfilter/nf_conntrack_l3proto.h index 3efab704b7eb..adc1fa3dd7ab 100644 --- a/include/net/netfilter/nf_conntrack_l3proto.h +++ b/include/net/netfilter/nf_conntrack_l3proto.h | |||
@@ -87,7 +87,6 @@ int nf_ct_l3proto_register(struct nf_conntrack_l3proto *proto); | |||
87 | void nf_ct_l3proto_unregister(struct nf_conntrack_l3proto *proto); | 87 | void nf_ct_l3proto_unregister(struct nf_conntrack_l3proto *proto); |
88 | 88 | ||
89 | struct nf_conntrack_l3proto *nf_ct_l3proto_find_get(u_int16_t l3proto); | 89 | struct nf_conntrack_l3proto *nf_ct_l3proto_find_get(u_int16_t l3proto); |
90 | void nf_ct_l3proto_put(struct nf_conntrack_l3proto *p); | ||
91 | 90 | ||
92 | /* Existing built-in protocols */ | 91 | /* Existing built-in protocols */ |
93 | extern struct nf_conntrack_l3proto nf_conntrack_l3proto_generic; | 92 | extern struct nf_conntrack_l3proto nf_conntrack_l3proto_generic; |
diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c index ecd8bec411c9..8127dc802865 100644 --- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c +++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c | |||
@@ -548,9 +548,3 @@ static void __exit nf_conntrack_l3proto_ipv4_fini(void) | |||
548 | 548 | ||
549 | module_init(nf_conntrack_l3proto_ipv4_init); | 549 | module_init(nf_conntrack_l3proto_ipv4_init); |
550 | module_exit(nf_conntrack_l3proto_ipv4_fini); | 550 | module_exit(nf_conntrack_l3proto_ipv4_fini); |
551 | |||
552 | void need_ipv4_conntrack(void) | ||
553 | { | ||
554 | return; | ||
555 | } | ||
556 | EXPORT_SYMBOL_GPL(need_ipv4_conntrack); | ||
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index 43549eb7a7be..8824ed0ccc9c 100644 --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c | |||
@@ -60,12 +60,6 @@ int (*nfnetlink_parse_nat_setup_hook)(struct nf_conn *ct, | |||
60 | const struct nlattr *attr) __read_mostly; | 60 | const struct nlattr *attr) __read_mostly; |
61 | EXPORT_SYMBOL_GPL(nfnetlink_parse_nat_setup_hook); | 61 | EXPORT_SYMBOL_GPL(nfnetlink_parse_nat_setup_hook); |
62 | 62 | ||
63 | int (*nf_nat_seq_adjust_hook)(struct sk_buff *skb, | ||
64 | struct nf_conn *ct, | ||
65 | enum ip_conntrack_info ctinfo, | ||
66 | unsigned int protoff); | ||
67 | EXPORT_SYMBOL_GPL(nf_nat_seq_adjust_hook); | ||
68 | |||
69 | DEFINE_SPINLOCK(nf_conntrack_lock); | 63 | DEFINE_SPINLOCK(nf_conntrack_lock); |
70 | EXPORT_SYMBOL_GPL(nf_conntrack_lock); | 64 | EXPORT_SYMBOL_GPL(nf_conntrack_lock); |
71 | 65 | ||
@@ -361,15 +355,6 @@ begin: | |||
361 | return NULL; | 355 | return NULL; |
362 | } | 356 | } |
363 | 357 | ||
364 | struct nf_conntrack_tuple_hash * | ||
365 | __nf_conntrack_find(struct net *net, u16 zone, | ||
366 | const struct nf_conntrack_tuple *tuple) | ||
367 | { | ||
368 | return ____nf_conntrack_find(net, zone, tuple, | ||
369 | hash_conntrack_raw(tuple, zone)); | ||
370 | } | ||
371 | EXPORT_SYMBOL_GPL(__nf_conntrack_find); | ||
372 | |||
373 | /* Find a connection corresponding to a tuple. */ | 358 | /* Find a connection corresponding to a tuple. */ |
374 | static struct nf_conntrack_tuple_hash * | 359 | static struct nf_conntrack_tuple_hash * |
375 | __nf_conntrack_find_get(struct net *net, u16 zone, | 360 | __nf_conntrack_find_get(struct net *net, u16 zone, |
diff --git a/net/netfilter/nf_conntrack_proto.c b/net/netfilter/nf_conntrack_proto.c index ce3004156eeb..b65d5864b6d9 100644 --- a/net/netfilter/nf_conntrack_proto.c +++ b/net/netfilter/nf_conntrack_proto.c | |||
@@ -92,12 +92,6 @@ nf_ct_l3proto_find_get(u_int16_t l3proto) | |||
92 | } | 92 | } |
93 | EXPORT_SYMBOL_GPL(nf_ct_l3proto_find_get); | 93 | EXPORT_SYMBOL_GPL(nf_ct_l3proto_find_get); |
94 | 94 | ||
95 | void nf_ct_l3proto_put(struct nf_conntrack_l3proto *p) | ||
96 | { | ||
97 | module_put(p->me); | ||
98 | } | ||
99 | EXPORT_SYMBOL_GPL(nf_ct_l3proto_put); | ||
100 | |||
101 | int | 95 | int |
102 | nf_ct_l3proto_try_module_get(unsigned short l3proto) | 96 | nf_ct_l3proto_try_module_get(unsigned short l3proto) |
103 | { | 97 | { |