diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-06-10 01:45:43 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-06-10 01:45:43 +0200 |
commit | c72da10b9b1193f7ecb84a5db7dbf943891b9e96 (patch) | |
tree | e8e3c34207ef4ce9bbc5599c1b393c58c3eff9fa /src/run.c | |
parent | 4e60aa36a78532d5b2675ec054f3c9abca0e933d (diff) | |
download | conntrack-tools-c72da10b9b1193f7ecb84a5db7dbf943891b9e96.tar.gz conntrack-tools-c72da10b9b1193f7ecb84a5db7dbf943891b9e96.zip |
conntrackd: remove unused request nfct handler
This patch is a cleanup, it removes an unused nfct handler. This
removal is due to recent commits that has obsolete it.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/run.c')
-rw-r--r-- | src/run.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -47,7 +47,6 @@ void killer(int foo) nfct_close(STATE(resync)); nfct_close(STATE(get)); - nfct_close(STATE(request)); if (STATE(us_filter)) ct_filter_destroy(STATE(us_filter)); @@ -408,15 +407,6 @@ init(void) } nfct_callback_register(STATE(get), NFCT_T_ALL, get_handler, NULL); - /* no callback, it does not do anything with the output */ - STATE(request) = nfct_open(CONNTRACK, 0); - if (STATE(request) == NULL) { - dlog(LOG_ERR, "can't open netlink handler: %s", - strerror(errno)); - dlog(LOG_ERR, "no ctnetlink kernel support?"); - return -1; - } - if (CONFIG(flags) & CTD_POLL) { init_alarm(&STATE(polling_alarm), NULL, do_polling_alarm); add_alarm(&STATE(polling_alarm), CONFIG(poll_kernel_secs), 0); |