From 30216bf35c8cfe078ede4c4ad7f43544b469b7d3 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 25 Sep 2008 17:06:12 +0200 Subject: 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 --- include/network.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'include') 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); -- cgit v1.2.3