From 567222194512c6d42c7e253fc69c3837fe7b078c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 6 Dec 2008 21:54:24 +0100 Subject: 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 --- include/network.h | 2 +- src/build.c | 2 -- 2 files changed, 1 insertion(+), 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); -- cgit v1.2.3