diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-11-27 23:40:13 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-11-27 23:40:13 +0100 |
commit | 9aba3974d60bfbc773ac366ad6b8859a5c000377 (patch) | |
tree | 39296ebf1ff288495f1e411281bcad7ffe0f8acd /include | |
parent | e6832ed088eac06fee6316dd2ecb8003aa635f17 (diff) | |
download | conntrack-tools-9aba3974d60bfbc773ac366ad6b8859a5c000377.tar.gz conntrack-tools-9aba3974d60bfbc773ac366ad6b8859a5c000377.zip |
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 <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/filter.h | 2 | ||||
-rw-r--r-- | include/netlink.h | 10 |
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); #endif 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); |