aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMartin Josefsson <gandalf@wlug.westbo.se>2006-11-28 20:34:59 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:31:05 -0500
commit7e5d03bb9d2b96fdeab0cb0c98b93e6cf7130c96 (patch)
tree8214d124da1d3c098b3fcf67f46ef1ec7529cf5d /include
parent77ab9cff0f4112703df3ef7903c1a15adb967114 (diff)
[NETFILTER]: nf_conntrack: split out helper handling
This patch splits out handling of helpers into its own file nf_conntrack_helper.c Signed-off-by: Martin Josefsson <gandalf@wlug.westbo.se> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/netfilter/nf_conntrack_core.h2
-rw-r--r--include/net/netfilter/nf_conntrack_helper.h10
2 files changed, 12 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_conntrack_core.h b/include/net/netfilter/nf_conntrack_core.h
index 84a8e01941fb..bf8d3008a381 100644
--- a/include/net/netfilter/nf_conntrack_core.h
+++ b/include/net/netfilter/nf_conntrack_core.h
@@ -80,4 +80,6 @@ print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple,
80extern struct list_head *nf_conntrack_hash; 80extern struct list_head *nf_conntrack_hash;
81extern struct list_head nf_conntrack_expect_list; 81extern struct list_head nf_conntrack_expect_list;
82extern rwlock_t nf_conntrack_lock ; 82extern rwlock_t nf_conntrack_lock ;
83extern struct list_head unconfirmed;
84
83#endif /* _NF_CONNTRACK_CORE_H */ 85#endif /* _NF_CONNTRACK_CORE_H */
diff --git a/include/net/netfilter/nf_conntrack_helper.h b/include/net/netfilter/nf_conntrack_helper.h
index 3cbd13e22160..fbba9e8b95fc 100644
--- a/include/net/netfilter/nf_conntrack_helper.h
+++ b/include/net/netfilter/nf_conntrack_helper.h
@@ -37,6 +37,16 @@ struct nf_conntrack_helper
37 int (*to_nfattr)(struct sk_buff *skb, const struct nf_conn *ct); 37 int (*to_nfattr)(struct sk_buff *skb, const struct nf_conn *ct);
38}; 38};
39 39
40extern struct nf_conntrack_helper *
41__nf_ct_helper_find(const struct nf_conntrack_tuple *tuple);
42
43extern struct nf_conntrack_helper *
44nf_ct_helper_find_get( const struct nf_conntrack_tuple *tuple);
45
46extern struct nf_conntrack_helper *
47__nf_conntrack_helper_find_byname(const char *name);
48
49extern void nf_ct_helper_put(struct nf_conntrack_helper *helper);
40extern int nf_conntrack_helper_register(struct nf_conntrack_helper *); 50extern int nf_conntrack_helper_register(struct nf_conntrack_helper *);
41extern void nf_conntrack_helper_unregister(struct nf_conntrack_helper *); 51extern void nf_conntrack_helper_unregister(struct nf_conntrack_helper *);
42 52