Don;t send packet over downed interface.
This commit is contained in:
parent
8b79c4ccd5
commit
07b7100292
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ iface_chstate(struct ospf_iface *ifa, u8 state)
|
||||||
ifa->dr_sk=NULL;
|
ifa->dr_sk=NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(oldstate==OSPF_IS_DR)
|
if((oldstate==OSPF_IS_DR)&&(state>=OSPF_IS_WAITING))
|
||||||
{
|
{
|
||||||
net_flush_lsa(ifa->nlsa,po,ifa->oa);
|
net_flush_lsa(ifa->nlsa,po,ifa->oa);
|
||||||
if(can_flush_lsa(ifa->oa)) flush_lsa(ifa->nlsa,ifa->oa);
|
if(can_flush_lsa(ifa->oa)) flush_lsa(ifa->nlsa,ifa->oa);
|
||||||
|
|
Loading…
Reference in a new issue