summaryrefslogtreecommitdiff
path: root/src/sync-mode.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-05-23 20:58:55 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2009-05-23 20:58:55 +0200
commit95c587ae01373ded13d696b155c7f277030a03d3 (patch)
tree072c8c7ebfe75096c979525c1c5ad8e68920ef75 /src/sync-mode.c
parent6f5666a29cb7cbff08ce926ee1edb84a311ff6ee (diff)
downloadconntrack-tools-95c587ae01373ded13d696b155c7f277030a03d3.tar.gz
conntrack-tools-95c587ae01373ded13d696b155c7f277030a03d3.zip
conntrackd: remove the cache write-through policy
This patch removes the cache write-through clause. This feature remained undocumented although some has found it looking at the source code. This feature has remained in the tree for quite some time although it has several limitations. Moreover, it is specifically broken and dangerous for Linux kernels >= 2.6.29 since it generates loops in the synchronization. We do this removal first to prepare the introduction of a feature to bypass the external cache. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/sync-mode.c')
-rw-r--r--src/sync-mode.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/sync-mode.c b/src/sync-mode.c
index a0ba830..699a585 100644
--- a/src/sync-mode.c
+++ b/src/sync-mode.c
@@ -274,10 +274,6 @@ static int init_sync(void)
return -1;
}
- /* straight forward commit of conntrack to kernel space */
- if (CONFIG(cache_write_through))
- STATE_SYNC(sync)->external_cache_flags |= WRITE_THROUGH;
-
STATE_SYNC(external) =
cache_create("external",
STATE_SYNC(sync)->external_cache_flags,