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/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/ospf/topology.c') diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index c3f70fd..a15d2e3 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -908,7 +908,7 @@ ospf_dump_lsa(struct top_hash_entry *he, struct proto *p) case LSA_T_NET: ln = he->lsa_body; rts = (u32 *) (ln + 1); - max = (he->lsa.length - sizeof(struct ospf_lsa_header) - + max = (he->lsa.length - sizeof(struct ospf_lsa_header) - sizeof(struct ospf_lsa_net)) / sizeof(u32); for (i = 0; i < max; i++) -- cgit v1.2.3