diff options
author | Ondrej Filip <feela@network.cz> | 2000-06-05 17:44:11 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-06-05 17:44:11 +0200 |
commit | 07b7100292fb87169ad5f18285927c39697f6998 (patch) | |
tree | 902f0eaaf76a219521b2fcde4c0e9aff8f8e24b3 | |
parent | 8b79c4ccd597b90222f57eb3dfadeb24f39db7bd (diff) | |
download | bird-07b7100292fb87169ad5f18285927c39697f6998.tar bird-07b7100292fb87169ad5f18285927c39697f6998.zip |
Don;t send packet over downed interface.
-rw-r--r-- | proto/ospf/iface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index f34d249..9258298 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -64,7 +64,7 @@ iface_chstate(struct ospf_iface *ifa, u8 state) 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); if(can_flush_lsa(ifa->oa)) flush_lsa(ifa->nlsa,ifa->oa); |