summaryrefslogtreecommitdiff
path: root/include/network.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-09-25 17:06:12 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2008-09-25 17:06:12 +0200
commit30216bf35c8cfe078ede4c4ad7f43544b469b7d3 (patch)
tree41e81ba74183f307e90f05ef7cbdf69db49df392 /include/network.h
parent3863f882469117afd6a2ad7ce25711b619f43b27 (diff)
downloadconntrack-tools-30216bf35c8cfe078ede4c4ad7f43544b469b7d3.tar.gz
conntrack-tools-30216bf35c8cfe078ede4c4ad7f43544b469b7d3.zip
ftfw: fix race condition in the helloing routine
This patch fixes a race condition that can prevent one node from sending the initial hello message required to reset the sequence tracking. node A node B | | start | | hello msg |----------------------->| stop | | start | | |<-----------------------| hello-back msg In the picture above, the node A never sends the hello messages. Thus, the node B drops the next messages as they are in the before boundary. This patch adds a new state to the the helloing state-machine to fix this problem. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/network.h')
-rw-r--r--include/network.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/network.h b/include/network.h
index 777be11..d2e4edd 100644
--- a/include/network.h
+++ b/include/network.h
@@ -65,12 +65,6 @@ enum {
SEQ_BEFORE,
};
-enum {
- SAY_HELLO,
- HELLO_BACK,
- HELLO_DONE,
-};
-
int mcast_track_seq(uint32_t seq, uint32_t *exp_seq);
void mcast_track_update_seq(uint32_t seq);
int mcast_track_is_seq_set(void);