From 9c3690c82cc394214b0026157cb9ab1885542ec9 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 8 Feb 2009 19:41:23 +0100 Subject: sync-mode: flush also internal cache after reset PurgeTimeout Currently, the daemon sends a flush request to the kernel-space. With lots of entries and NetlinkOverrunResync disabled, the daemon remains in an inconsistent state due to an overrun produced by the flush report to userspace. With this patch, the daemon also flush its internal cache after the kernel flush request. Signed-off-by: Pablo Neira Ayuso --- src/sync-mode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sync-mode.c b/src/sync-mode.c index 8174681..63948f1 100644 --- a/src/sync-mode.c +++ b/src/sync-mode.c @@ -210,6 +210,7 @@ static void do_reset_cache_alarm(struct alarm_block *a, void *data) STATE(stats).nl_kernel_table_flush++; dlog(LOG_NOTICE, "flushing kernel conntrack table (scheduled)"); nl_flush_conntrack_table(STATE(request)); + cache_flush(STATE_SYNC(internal)); } static int init_sync(void) -- cgit v1.2.3