aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-01-15 02:48:57 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:02:41 -0500
commitb334aadc3c5cd4dae2a44f3dac09b3ef718ccde1 (patch)
tree5d0c6da0e7f5b0ff9f6a1f8eab7e45be96694f5e /net
parent4f536522dae9d5326ad1872cd254ee84681cf563 (diff)
[NETFILTER]: nf_conntrack: clean up a few header files
- Remove declarations of non-existing variables and functions - Move helper init/cleanup function declarations to nf_conntrack_helper.h - Remove unneeded __nf_conntrack_attach declaration and make it static Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nf_conntrack_core.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index 25564073ee23..078fff0335ad 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -861,7 +861,7 @@ EXPORT_SYMBOL_GPL(nf_ct_port_nlattr_to_tuple);
861#endif 861#endif
862 862
863/* Used by ipt_REJECT and ip6t_REJECT. */ 863/* Used by ipt_REJECT and ip6t_REJECT. */
864void __nf_conntrack_attach(struct sk_buff *nskb, struct sk_buff *skb) 864static void nf_conntrack_attach(struct sk_buff *nskb, struct sk_buff *skb)
865{ 865{
866 struct nf_conn *ct; 866 struct nf_conn *ct;
867 enum ip_conntrack_info ctinfo; 867 enum ip_conntrack_info ctinfo;
@@ -878,7 +878,6 @@ void __nf_conntrack_attach(struct sk_buff *nskb, struct sk_buff *skb)
878 nskb->nfctinfo = ctinfo; 878 nskb->nfctinfo = ctinfo;
879 nf_conntrack_get(nskb->nfct); 879 nf_conntrack_get(nskb->nfct);
880} 880}
881EXPORT_SYMBOL_GPL(__nf_conntrack_attach);
882 881
883static inline int 882static inline int
884do_iter(const struct nf_conntrack_tuple_hash *i, 883do_iter(const struct nf_conntrack_tuple_hash *i,
@@ -1122,7 +1121,7 @@ int __init nf_conntrack_init(void)
1122 goto out_fini_expect; 1121 goto out_fini_expect;
1123 1122
1124 /* For use by REJECT target */ 1123 /* For use by REJECT target */
1125 rcu_assign_pointer(ip_ct_attach, __nf_conntrack_attach); 1124 rcu_assign_pointer(ip_ct_attach, nf_conntrack_attach);
1126 rcu_assign_pointer(nf_ct_destroy, destroy_conntrack); 1125 rcu_assign_pointer(nf_ct_destroy, destroy_conntrack);
1127 1126
1128 /* Set up fake conntrack: 1127 /* Set up fake conntrack: