From 0844b65d13d7a5928d425e9adaf28de63550a542 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Tue, 13 Jan 2009 19:15:49 +0100 Subject: Fix OSPF protocol error recovery behavior. When OSPF neighbor state drops down to EXSTART, clear LSA request and retransmit lists, as specified by RFC. I hope that this will prevent oscillations between EXSTART and LOADING states, which sometimes happened. It also contains related fix from Yury Shevchuk that properly resets DB summary list iterator. --- proto/ospf/dbdes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto/ospf/dbdes.c') diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c index 2c5077b..9f45dfd 100644 --- a/proto/ospf/dbdes.c +++ b/proto/ospf/dbdes.c @@ -113,8 +113,8 @@ ospf_dbdes_send(struct ospf_neighbor *n) DBG("M bit unset.\n"); n->myimms.bit.m = 0; /* Unset more bit */ } - else - s_put(&(n->dbsi), sn); + + s_put(&(n->dbsi), sn); } pkt->imms.byte = n->myimms.byte; -- cgit v1.2.3