]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Bugfix in lsrt slist adding.
authorOndrej Filip <feela@network.cz>
Tue, 9 May 2000 19:38:16 +0000 (19:38 +0000)
committerOndrej Filip <feela@network.cz>
Tue, 9 May 2000 19:38:16 +0000 (19:38 +0000)
proto/ospf/lsack.c
proto/ospf/lsupd.c

index 3479f3afc4cb38a1fd85a4ddecc956959f203f28..467edcf1c6d6b6f293303a19603f9b6780176c1b 100644 (file)
@@ -186,8 +186,8 @@ ospf_lsack_rx(struct ospf_lsack_packet *ps, struct proto *p,
     {
       log("Strange LS acknoledgement from %I",n->rid);
       log("Id: %I, Rt: %I, Type: %u",lsa.id, lsa.rt, lsa.type);
-      log("I have: Age: %u, Seqno: %u", en->lsa.age, en->lsa.sn);
-      log("He has: Age: %u, Seqno: %u", lsa.age, lsa.sn);
+      log("I have: Age: %4u, Seqno: 0x%08x", en->lsa.age, en->lsa.sn);
+      log("He has: Age: %4u, Seqno: 0x%08x", lsa.age, lsa.sn);
       continue;
     }
 
index 608db878dfcdad2abf6afe74e14115e400581cd9..b6037419dc53e3d0340405e064b189808b35f5a6 100644 (file)
@@ -78,6 +78,7 @@ flood_lsa(struct ospf_neighbor *n, struct ospf_lsa_header *hn,
         s_rem_node(SNODE en);
       }
       s_add_tail(&nn->lsrtl, SNODE en);
+      memcpy(&en->lsa,hh,sizeof(struct ospf_lsa_header));
       ret=1;
       DBG("Adding LSA lsrt RT: %I, Id: %I, Type: %u for n: %I\n",
         en->lsa.rt,en->lsa.id, en->lsa.type, nn->ip);