summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-09 21:38:16 +0200
committerOndrej Filip <feela@network.cz>2000-05-09 21:38:16 +0200
commita3ae6246c29ecceefc1e867c7b5f73a5b3c857c9 (patch)
treef2b5e3a75406a438c4d7e0e00ba68e1757ecdbcf
parentb224ca32cfb5268db4984b5a640ab8a73852059b (diff)
downloadbird-a3ae6246c29ecceefc1e867c7b5f73a5b3c857c9.tar
bird-a3ae6246c29ecceefc1e867c7b5f73a5b3c857c9.zip
Bugfix in lsrt slist adding.
-rw-r--r--proto/ospf/lsack.c4
-rw-r--r--proto/ospf/lsupd.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/proto/ospf/lsack.c b/proto/ospf/lsack.c
index 3479f3a..467edcf 100644
--- a/proto/ospf/lsack.c
+++ b/proto/ospf/lsack.c
@@ -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;
}
diff --git a/proto/ospf/lsupd.c b/proto/ospf/lsupd.c
index 608db87..b603741 100644
--- a/proto/ospf/lsupd.c
+++ b/proto/ospf/lsupd.c
@@ -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);