diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-09 00:02:44 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-09 00:02:44 +0100 |
commit | dd93edbbd09af4523dfe0f0c3c92f510daf223e8 (patch) | |
tree | b9915186192e76327dd85f7f2a4204dbd71a9ea6 /src/netlink.c | |
parent | 1f5834262c91d835414b538857b67e058a1c1dac (diff) | |
download | conntrack-tools-dd93edbbd09af4523dfe0f0c3c92f510daf223e8.tar.gz conntrack-tools-dd93edbbd09af4523dfe0f0c3c92f510daf223e8.zip |
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/netlink.c')
-rw-r--r-- | src/netlink.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/netlink.c b/src/netlink.c index 31cee61..9d155aa 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -148,6 +148,11 @@ int nl_dump_conntrack_table(void) return nfct_query(STATE(dump), NFCT_Q_DUMP, &CONFIG(family)); } +int nl_flush_conntrack_table(void) +{ + return nfct_query(STATE(request), NFCT_Q_FLUSH, &CONFIG(family)); +} + int nl_overrun_request_resync(void) { int family = CONFIG(family); |