summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-01-25 17:53:05 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-01-25 17:53:05 +0100
commit50c09dec9ad0261d8fcc18d69b2c9ec74052955c (patch)
tree143d7e278fc3f1688c60663be04f06ae2e98700f /include
parent1c9faf8c218bc7ff4617557383e4116f1adb11e5 (diff)
downloadconntrack-tools-50c09dec9ad0261d8fcc18d69b2c9ec74052955c.tar.gz
conntrack-tools-50c09dec9ad0261d8fcc18d69b2c9ec74052955c.zip
src: add support for approximate timeout calculation during commit
During the commit phase, the entries in the external cache entries are inserted in the kernel conntrack table. Currently, we use a fixed timeout that is specified in the config file. With this patch, if you don't specify the fixed timeout value via CommitTimeout, the daemon calculates the real timeout value during the commit phase. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/cache.h1
-rw-r--r--include/network.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/cache.h b/include/cache.h
index 1fd3881..371170d 100644
--- a/include/cache.h
+++ b/include/cache.h
@@ -34,6 +34,7 @@ struct cache_object {
int status;
int refcnt;
long lifetime;
+ long lastupdate;
char data[0];
};
diff --git a/include/network.h b/include/network.h
index 740e762..7cfaf84 100644
--- a/include/network.h
+++ b/include/network.h
@@ -192,7 +192,7 @@ enum nta_attr {
NTA_PORT, /* struct nfct_attr_grp_port */
NTA_STATE = 4, /* uint8_t */
NTA_STATUS, /* uint32_t */
- NTA_TIMEOUT, /* uint32_t -- unused */
+ NTA_TIMEOUT, /* uint32_t */
NTA_MARK, /* uint32_t */
NTA_MASTER_IPV4 = 8, /* struct nfct_attr_grp_ipv4 */
NTA_MASTER_IPV6, /* struct nfct_attr_grp_ipv6 */