summaryrefslogtreecommitdiffstats
path: root/src/run.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-12-09 00:02:44 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2008-12-09 00:02:44 +0100
commitdd93edbbd09af4523dfe0f0c3c92f510daf223e8 (patch)
treeb9915186192e76327dd85f7f2a4204dbd71a9ea6 /src/run.c
parent1f5834262c91d835414b538857b67e058a1c1dac (diff)
src: recover conntrackd -F operation
This patch recovers the option -F for conntrackd. This will be particularly useful to flush the kernel conntrack table without getting the event notification of the conntrack deletions (that will happen with Linux kernel >= 2.6.29). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/run.c')
-rw-r--r--src/run.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/run.c b/src/run.c
index 6515e62..4bd0e5b 100644
--- a/src/run.c
+++ b/src/run.c
@@ -78,12 +78,8 @@ void local_handler(int fd, void *data)
switch(type) {
case FLUSH_MASTER:
- dlog(LOG_WARNING, "`conntrackd -F' is deprecated. "
- "Use conntrack -F instead.");
- if (fork() == 0) {
- execlp("conntrack", "conntrack", "-F", NULL);
- exit(EXIT_SUCCESS);
- }
+ dlog(LOG_NOTICE, "flushing kernel conntrack table");
+ nl_flush_conntrack_table();
return;
case RESYNC_MASTER:
dlog(LOG_NOTICE, "resync with master table");