diff options
author | Ondrej Filip <feela@network.cz> | 2008-08-25 14:00:55 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2008-08-25 14:00:55 +0200 |
commit | 73e53eb555a58846c4d2db6464d41d1761a60169 (patch) | |
tree | fa8934fee5b3f234fec452470cf043c7ac5c4780 /proto | |
parent | 030e3a79cb9376fa85597fdb8243299cd843ca3a (diff) | |
download | bird-73e53eb555a58846c4d2db6464d41d1761a60169.tar bird-73e53eb555a58846c4d2db6464d41d1761a60169.zip |
Endianity problem in debug message fix.
Diffstat (limited to 'proto')
-rw-r--r-- | proto/ospf/lsreq.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/proto/ospf/lsreq.c b/proto/ospf/lsreq.c index 3c8b722..774efe2 100644 --- a/proto/ospf/lsreq.c +++ b/proto/ospf/lsreq.c @@ -91,11 +91,12 @@ ospf_lsreq_receive(struct ospf_lsreq_packet *ps, sizeof(struct ospf_lsreq_header); for (i = 0; i < lsano; lsh++, i++) { - DBG("Processing LSA: ID=%I, Type=%u, Router=%I\n", ntohl(lsh->id), - lsh->type, ntohl(lsh->rt)); + u32 hid = ntohl(lsh->id); + u32 hrt = ntohl(lsh->rt); + DBG("Processing LSA: ID=%I, Type=%u, Router=%I\n", hid, lsh->type, hrt); llsh = sl_alloc(upslab); - llsh->lsh.id = ntohl(lsh->id); - llsh->lsh.rt = ntohl(lsh->rt); + llsh->lsh.id = hid; + llsh->lsh.rt = hrt; llsh->lsh.type = lsh->type; add_tail(&uplist, NODE llsh); if (ospf_hash_find(po->gr, oa->areaid, llsh->lsh.id, llsh->lsh.rt, @@ -103,7 +104,7 @@ ospf_lsreq_receive(struct ospf_lsreq_packet *ps, { log(L_WARN "Received bad LS req from: %I looking: RT: %I, ID: %I, Type: %u", - n->ip, lsh->rt, lsh->id, lsh->type); + n->ip, hrt, hid, lsh->type); ospf_neigh_sm(n, INM_BADLSREQ); rfree(upslab); return; |