diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-08-02 18:59:36 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-08-02 18:59:36 +0200 |
commit | 16010f777b090b293a00072d8368e94418cc99f8 (patch) | |
tree | 42e7f36cb86952ae21fb670a18c6660c1ba16627 /include | |
parent | c403246424350bae14a30fc6a115608ca15f2aa1 (diff) | |
download | conntrack-tools-16010f777b090b293a00072d8368e94418cc99f8.tar.gz conntrack-tools-16010f777b090b293a00072d8368e94418cc99f8.zip |
conntrackd: add -t option to shorten conntrack timeouts
This patch adds the new option `-t' for conntrackd. This option shortens
the value of the timeout for the cached entries that lives in the
kernel. This option is particularly useful to remove the zombie
established entries that remain in kernel if the user tests the platform
by forcing the takeover from one to another node several times.
We currently use the value of CommitTimeout which is sane for it. Adding
a new option does not seem to add more flexibility IMO.
Once we get the patches to notify user changes via ctnetlink and the
netlink flag NLM_F_ECHO works, we may directly invoke a massive purge of
the entries, however, such solution would still need evaluation.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/cache.h | 1 | ||||
-rw-r--r-- | include/conntrackd.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/cache.h b/include/cache.h index ba8d3aa..45c3b7e 100644 --- a/include/cache.h +++ b/include/cache.h @@ -97,5 +97,6 @@ void cache_dump(struct cache *c, int fd, int type); void cache_commit(struct cache *c); void cache_flush(struct cache *c); void cache_bulk(struct cache *c); +void cache_reset_timers(struct cache *c); #endif diff --git a/include/conntrackd.h b/include/conntrackd.h index d2c8931..2f0d7e5 100644 --- a/include/conntrackd.h +++ b/include/conntrackd.h @@ -24,6 +24,7 @@ #define REQUEST_DUMP 23 /* request dump */ #define DUMP_INT_XML 24 /* dump internal cache in XML */ #define DUMP_EXT_XML 25 /* dump external cache in XML */ +#define RESET_TIMERS 26 /* reset kernel timers */ #define DEFAULT_CONFIGFILE "/etc/conntrackd/conntrackd.conf" #define DEFAULT_LOCKFILE "/var/lock/conntrackd.lock" |