]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixed the serious bug in LSack.
authorOndrej Filip <feela@network.cz>
Tue, 18 Apr 2000 19:44:16 +0000 (19:44 +0000)
committerOndrej Filip <feela@network.cz>
Tue, 18 Apr 2000 19:44:16 +0000 (19:44 +0000)
Oh, I'm an idiot. I sent LSACK, but in header was LSUPD. :-(

proto/ospf/lsack.c

index 335ae1e166c231d1bfba1e878987c2c845a7fdd9..f95caf52176d03c0c97bc3bd8f75da36292d096c 100644 (file)
@@ -22,7 +22,7 @@ ospf_lsack_direct_tx(struct ospf_neighbor *n,struct ospf_lsa_header *h)
   pk=(struct ospf_lsack_packet *)sk->tbuf;
   op=(struct ospf_packet *)sk->tbuf;
 
-  fill_ospf_pkt_hdr(n->ifa, pk, LSUPD);
+  fill_ospf_pkt_hdr(n->ifa, pk, LSACK);
 
   memcpy(pk+1,h,sizeof(struct ospf_lsa_header));
   len=sizeof(struct ospf_lsack_packet)+sizeof(struct ospf_lsa_header);
@@ -76,7 +76,7 @@ ospf_lsack_delay_tx(struct ospf_neighbor *n)
   pk=(struct ospf_lsack_packet *)sk->tbuf;
   op=(struct ospf_packet *)sk->tbuf;
 
-  fill_ospf_pkt_hdr(n->ifa, pk, LSUPD);
+  fill_ospf_pkt_hdr(n->ifa, pk, LSACK);
   h=(struct ospf_lsa_header *)(pk+1);
 
   while(!EMPTY_LIST(n->ackl))
@@ -115,7 +115,7 @@ ospf_lsack_delay_tx(struct ospf_neighbor *n)
        }
        */
 
-       fill_ospf_pkt_hdr(n->ifa, pk, LSUPD);
+       fill_ospf_pkt_hdr(n->ifa, pk, LSACK);
        i=0;
       }
     }