From 3c5e35974c65f4470e6543c2cc772c0f1824dc44 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Sun, 25 Nov 2007 18:08:02 +0000 Subject: Add CacheWriteThrough clause: external cache write through policy. This feature is particularly useful for active-active setup without connection persistency, ie. you cannot know which firewall would filter a packet that belongs to a connection. --- include/cache.h | 4 ++++ include/conntrackd.h | 1 + 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/cache.h b/include/cache.h index e755dbe..f5e9576 100644 --- a/include/cache.h +++ b/include/cache.h @@ -14,6 +14,9 @@ enum { LIFETIME_FEATURE = 2, LIFETIME = (1 << LIFETIME_FEATURE), + WRITE_THROUGH_FEATURE = 3, + WRITE_THROUGH = (1 << WRITE_THROUGH_FEATURE), + __CACHE_MAX_FEATURE }; #define CACHE_MAX_FEATURE __CACHE_MAX_FEATURE @@ -31,6 +34,7 @@ struct cache_feature { extern struct cache_feature lifetime_feature; extern struct cache_feature timer_feature; +extern struct cache_feature writethrough_feature; #define CACHE_MAX_NAMELEN 32 diff --git a/include/conntrackd.h b/include/conntrackd.h index fc15ebe..2722f00 100644 --- a/include/conntrackd.h +++ b/include/conntrackd.h @@ -86,6 +86,7 @@ struct ct_conf { int family; /* protocol family */ unsigned int resend_buffer_size;/* NACK protocol */ unsigned int window_size; + int cache_write_through; }; #define STATE(x) st.x -- cgit v1.2.3