summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-12-06 21:54:24 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2008-12-06 21:54:24 +0100
commit567222194512c6d42c7e253fc69c3837fe7b078c (patch)
treeb410da7e24920b6150c5aea5e83b6db63fe7d2eb
parent3ab102a8c26ad3f5db61f509eb5e478e95922fbf (diff)
build: do not include NTA_TIMEOUT in the replication messages
With this patch, NTA_TIMEOUT is not included in the replication messages anymore. During the fail-over, we set a small timeout to purge the entries that were not recovered successfully (however, unsuccessful recovery should not happen ever). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--include/network.h2
-rw-r--r--src/build.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/include/network.h b/include/network.h
index 5da1db5..6ab099f 100644
--- a/include/network.h
+++ b/include/network.h
@@ -185,7 +185,7 @@ enum nta_attr {
NTA_PORT, /* struct nfct_attr_grp_port */
NTA_STATE = 4, /* uint8_t */
NTA_STATUS, /* uint32_t */
- NTA_TIMEOUT, /* uint32_t */
+ NTA_TIMEOUT, /* uint32_t -- unused */
NTA_MARK, /* uint32_t */
NTA_MASTER_IPV4 = 8, /* struct nfct_attr_grp_ipv4 */
NTA_MASTER_IPV6, /* struct nfct_attr_grp_ipv6 */
diff --git a/src/build.c b/src/build.c
index c776de8..84515cf 100644
--- a/src/build.c
+++ b/src/build.c
@@ -117,8 +117,6 @@ void build_netpld(struct nf_conntrack *ct, struct netpld *pld, int query)
if (nfct_attr_is_set(ct, ATTR_TCP_STATE))
__build_u8(ct, ATTR_TCP_STATE, pld, NTA_STATE);
- if (nfct_attr_is_set(ct, ATTR_TIMEOUT))
- __build_u32(ct, ATTR_TIMEOUT, pld, NTA_TIMEOUT);
if (nfct_attr_is_set(ct, ATTR_MARK))
__build_u32(ct, ATTR_MARK, pld, NTA_MARK);