]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Sorry, it didn't compile. :-(
authorOndrej Filip <feela@network.cz>
Tue, 9 May 2000 11:29:52 +0000 (11:29 +0000)
committerOndrej Filip <feela@network.cz>
Tue, 9 May 2000 11:29:52 +0000 (11:29 +0000)
proto/ospf/hello.c
proto/ospf/neighbor.c

index 74ae43abf5921b8248b754d0238639f3d5ea62dd..d15f529781cebcac16a853b3ee7a52b34e8a38ad 100644 (file)
@@ -161,7 +161,7 @@ ospf_hello_rx(struct ospf_hello_packet *ps, struct proto *p,
       ospf_int_sm(ifa, ISM_NEICH);
 
     /* Neighbor is no more declaring itself as DR or BDR */
-    if(((n->rid==olddr) && (n->dr!=olddr)) || ((n->rid==olbddr) &&
+    if(((n->rid==olddr) && (n->dr!=olddr)) || ((n->rid==oldbdr) &&
       (n->dr!=oldbdr)))
       ospf_int_sm(ifa, ISM_NEICH);
   }
index 466c7ad57be2fa4b83f13f2247a608310cd59720..9f1c7fd8d5943128fa201c381682bf3046d8e033 100644 (file)
@@ -29,8 +29,10 @@ neigh_chstate(struct ospf_neighbor *n, u8 state)
   {
     ifa=n->ifa;
     n->state=state;
-    if(state==2WAY && oldstate<2WAY) ospf_int_sm(n->ifa, ISM_NEICH);
-    if(state<2WAY && oldstate>=2WAY) ospf_int_sm(n->ifa, ISM_NEICH);
+    if((state==NEIGHBOR_2WAY) && (oldstate<NEIGHBOR_2WAY))
+      ospf_int_sm(n->ifa, ISM_NEICH);
+    if((state<NEIGHBOR_2WAY) && (oldstate>=NEIGHBOR_2WAY))
+      ospf_int_sm(n->ifa, ISM_NEICH);
     if(oldstate==NEIGHBOR_FULL)        /* Decrease number of adjacencies */
     {
       ifa->fadj--;