summaryrefslogtreecommitdiff
path: root/proto/ospf/lsack.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-12-03 18:25:14 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2009-12-03 18:25:14 +0100
commit69fbf9a25190e0149dcc31e830e952c586fe2024 (patch)
treeb681ef1f421727f0b69af45a8313f998afdf0493 /proto/ospf/lsack.c
parente4a810b0ce3d7904e87a210c44c36eda7cba7a3e (diff)
Minor fix in LSA update.
Diffstat (limited to 'proto/ospf/lsack.c')
-rw-r--r--proto/ospf/lsack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/lsack.c b/proto/ospf/lsack.c
index 857f0c12..ba9a918a 100644
--- a/proto/ospf/lsack.c
+++ b/proto/ospf/lsack.c
@@ -76,9 +76,9 @@ ospf_lsack_send(struct ospf_neighbor *n, int queue)
{
no = (struct lsah_n *) HEAD(n->ackl[queue]);
memcpy(h + i, &no->lsa, sizeof(struct ospf_lsa_header));
- i++;
- DBG("Iter %u ID: %R, RT: %R, Type: %u\n", i, ntohl((h + i)->id),
+ DBG("Iter %u ID: %R, RT: %R, Type: %04x\n", i, ntohl((h + i)->id),
ntohl((h + i)->rt), (h + i)->type);
+ i++;
rem_node(NODE no);
mb_free(no);
if ((i * sizeof(struct ospf_lsa_header) +