From eb2c99a132c87c5560edc77909edfab2df44f0a2 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Mon, 5 Jun 2000 16:32:29 +0000 Subject: Yet another change, now flushing of net lsa seems to be perfect. :-) --- proto/ospf/iface.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'proto') diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index 92582981..0d3e0329 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -64,9 +64,13 @@ iface_chstate(struct ospf_iface *ifa, u8 state) ifa->dr_sk=NULL; } } - if((oldstate==OSPF_IS_DR)&&(state>=OSPF_IS_WAITING)) + if(oldstate==OSPF_IS_DR) { - net_flush_lsa(ifa->nlsa,po,ifa->oa); + if(state>=OSPF_IS_WAITING) + { + net_flush_lsa(ifa->nlsa,po,ifa->oa); + } + ifa->nlsa->lsa.age=LSA_MAXAGE; if(can_flush_lsa(ifa->oa)) flush_lsa(ifa->nlsa,ifa->oa); ifa->nlsa=NULL; } -- cgit v1.2.3