]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Bug in DBDES receiving fixed.
authorOndrej Filip <feela@network.cz>
Wed, 19 May 2004 12:30:58 +0000 (12:30 +0000)
committerOndrej Filip <feela@network.cz>
Wed, 19 May 2004 12:30:58 +0000 (12:30 +0000)
proto/ospf/dbdes.c

index 45241c3d772ba952bcd80f03fc6b4ea9f7dc753e..03e010e29941156fefc1dc589c0eee593734a989 100644 (file)
@@ -209,7 +209,6 @@ ospf_dbdes_rx(struct ospf_dbdes_packet *ps, struct proto *p,
 {
   u32 nrid, myrid;
   struct ospf_neighbor *n;
-  u8 i;
 
   nrid=ntohl(((struct ospf_packet *)ps)->routerid);
 
@@ -356,7 +355,7 @@ ospf_dbdes_rx(struct ospf_dbdes_packet *ps, struct proto *p,
     case NEIGHBOR_LOADING:
     case NEIGHBOR_FULL:
        if((ps->imms.byte==n->imms.byte) && (ps->options==n->options) &&
-         (ps->ddseq==n->dds)) /* Only duplicate are accepted */
+         (ntohl(ps->ddseq)==n->ddr)) /* Only duplicate are accepted */
         {
           OSPF_TRACE(D_PACKETS, "Received duplicate dbdes from %I.",n->ip);
           return;