path: root/include
diff options
authorPablo Neira Ayuso <>2008-11-27 23:40:13 +0100
committerPablo Neira Ayuso <>2008-11-27 23:40:13 +0100
commit9aba3974d60bfbc773ac366ad6b8859a5c000377 (patch)
tree39296ebf1ff288495f1e411281bcad7ffe0f8acd /include
parente6832ed088eac06fee6316dd2ecb8003aa635f17 (diff)
src: move callbacks to run.c for better readability
This patch is a cleanup. It moves the callbacks from netlink.c to run.c where they are actually invoked. This is better for code readability as I usually have to switch from run.c to netlink.c to remember what the callbacks actually do. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include')
2 files changed, 5 insertions, 7 deletions
diff --git a/include/filter.h b/include/filter.h
index 567be34..9c2cf66 100644
--- a/include/filter.h
+++ b/include/filter.h
@@ -39,6 +39,6 @@ void ct_filter_add_state(struct ct_filter *f, int protonum, int state);
void ct_filter_set_logic(struct ct_filter *f,
enum ct_filter_type type,
enum ct_filter_logic logic);
-int ct_filter_check(struct ct_filter *filter, struct nf_conntrack *ct);
+int ct_filter_conntrack(struct nf_conntrack *ct, int userspace);
diff --git a/include/netlink.h b/include/netlink.h
index d13d33d..52482c1 100644
--- a/include/netlink.h
+++ b/include/netlink.h
@@ -6,15 +6,13 @@
struct nf_conntrack;
struct nfct_handle;
-int ignore_conntrack(struct nf_conntrack *ct, int userspace);
+struct nfct_handle *nl_init_event_handler(void);
-int nl_init_event_handler(void);
+struct nfct_handle *nl_init_dump_handler(void);
-int nl_init_dump_handler(void);
+struct nfct_handle *nl_init_request_handler(void);
-int nl_init_request_handler(void);
-int nl_init_overrun_handler(void);
+struct nfct_handle *nl_init_overrun_handler(void);
int nl_overrun_request_resync(void);