]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Bugfix in hello.
authorOndrej Filip <feela@network.cz>
Tue, 9 May 2000 12:02:48 +0000 (12:02 +0000)
committerOndrej Filip <feela@network.cz>
Tue, 9 May 2000 12:02:48 +0000 (12:02 +0000)
proto/ospf/hello.c
proto/ospf/iface.c

index d15f529781cebcac16a853b3ee7a52b34e8a38ad..f3bd3d56bc55f9dd093d8774a1bd5ac4e840536f 100644 (file)
@@ -162,7 +162,7 @@ ospf_hello_rx(struct ospf_hello_packet *ps, struct proto *p,
 
     /* Neighbor is no more declaring itself as DR or BDR */
     if(((n->rid==olddr) && (n->dr!=olddr)) || ((n->rid==oldbdr) &&
-      (n->dr!=oldbdr)))
+      (n->bdr!=oldbdr)))
       ospf_int_sm(ifa, ISM_NEICH);
   }
 
index 908ec587d0413e6845a7dd3ca7152f4ddbb47de7..8dec4fad87c1c470915becceaf5317af0c173107 100644 (file)
@@ -76,7 +76,7 @@ ospf_int_sm(struct ospf_iface *ifa, int event)
   struct proto *p=(struct proto *)(ifa->proto);
   struct proto_ospf *po=ifa->proto;
 
-  DBG("%s: SM on iface %s. Event is \"%s\".\n",
+  debug("%s: SM on iface %s. Event is \"%s\".\n",
     p->name, ifa->iface->name, ospf_ism[event]);
 
   switch(event)