summaryrefslogtreecommitdiffstats
path: root/proto/ospf/lsreq.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-01-11 12:14:27 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2009-01-11 12:14:27 +0100
commit23d6702952841184d364a5520dbe6be7a1a5d14b (patch)
tree5172dc8ef03cfdbbc610442b6a8033beac198cdb /proto/ospf/lsreq.c
parent0e9617e400d54f6f5119a24e7380b7719c2fc3dd (diff)
downloadbird-23d6702952841184d364a5520dbe6be7a1a5d14b.tar
bird-23d6702952841184d364a5520dbe6be7a1a5d14b.zip
Some fixes and update of OSPF debug messages
Diffstat (limited to 'proto/ospf/lsreq.c')
-rw-r--r--proto/ospf/lsreq.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/proto/ospf/lsreq.c b/proto/ospf/lsreq.c
index 774efe2..f43a08f 100644
--- a/proto/ospf/lsreq.c
+++ b/proto/ospf/lsreq.c
@@ -45,8 +45,8 @@ ospf_lsreq_send(struct ospf_neighbor *n)
lsh->type = en->lsa.type;
lsh->rt = htonl(en->lsa.rt);
lsh->id = htonl(en->lsa.id);
- DBG("Requesting %uth LSA: Type: %u, Id: %I, RT: %I\n", i, en->lsa.type,
- en->lsa.id, en->lsa.rt);
+ DBG("Requesting %uth LSA: Type: %u, ID: %I, RT: %I, SN: 0x%x, Age %u\n",
+ i, en->lsa.type, en->lsa.id, en->lsa.rt, en->lsa.sn, en->lsa.age);
lsh++;
if (sn == STAIL(n->lsrql))
break;
@@ -93,7 +93,7 @@ ospf_lsreq_receive(struct ospf_lsreq_packet *ps,
{
u32 hid = ntohl(lsh->id);
u32 hrt = ntohl(lsh->rt);
- DBG("Processing LSA: ID=%I, Type=%u, Router=%I\n", hid, lsh->type, hrt);
+ DBG("Processing requested LSA: Type: %u, ID: %I, RT: %I\n", lsh->type, hid, hrt);
llsh = sl_alloc(upslab);
llsh->lsh.id = hid;
llsh->lsh.rt = hrt;
@@ -103,8 +103,8 @@ ospf_lsreq_receive(struct ospf_lsreq_packet *ps,
llsh->lsh.type) == NULL)
{
log(L_WARN
- "Received bad LS req from: %I looking: RT: %I, ID: %I, Type: %u",
- n->ip, hrt, hid, lsh->type);
+ "Received bad LS req from: %I looking: Type: %u, ID: %I, RT: %I",
+ n->ip, lsh->type, hid, hrt);
ospf_neigh_sm(n, INM_BADLSREQ);
rfree(upslab);
return;