[lldp-devel] [PATCH 3/8] bugfix: go to VSI_EXIT immediately on neg response

Jens Osterkamp jens at linux.vnet.ibm.com
Mon Aug 15 20:54:29 UTC 2011


If a vsi_profile receives a negative response while in ASSOCIATED state,
it has to go to VSI_EXIT immediately to avoid sitting in DEASSOC_PROCESSING
before timing out.

Signed-off-by: Jens Osterkamp <jens at linux.vnet.ibm.com>
---
 lldp_vdp.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/lldp_vdp.c b/lldp_vdp.c
index 4aee7fa..9b5de57 100644
--- a/lldp_vdp.c
+++ b/lldp_vdp.c
@@ -573,8 +573,7 @@ static bool vdp_vsi_set_station_state(struct vsi_profile *profile)
 			vdp_vsi_change_station_state(profile, VSI_DEASSOC_PROCESSING);
 			return true;
 		} else if (vdp_vsi_negative_response(profile)) {
-			vdp_vsi_change_station_state(profile, VSI_DEASSOC_PROCESSING);
-			vdp_somethingChangedLocal(profile, true);
+			vdp_vsi_change_station_state(profile, VSI_EXIT);
 			return true;
 		} else if (vdp_keepaliveTimer_expired(profile)) {
 			vdp_stop_keepaliveTimer(profile);
-- 
1.7.4.4




More information about the lldp-devel mailing list