Revision 73e53eb5 proto/ospf/lsreq.c

View differences:

proto/ospf/lsreq.c
91 91
    sizeof(struct ospf_lsreq_header);
92 92
  for (i = 0; i < lsano; lsh++, i++)
93 93
  {
94
    DBG("Processing LSA: ID=%I, Type=%u, Router=%I\n", ntohl(lsh->id),
95
	lsh->type, ntohl(lsh->rt));
94
    u32 hid = ntohl(lsh->id);
95
    u32 hrt = ntohl(lsh->rt);
96
    DBG("Processing LSA: ID=%I, Type=%u, Router=%I\n", hid, lsh->type, hrt);
96 97
    llsh = sl_alloc(upslab);
97
    llsh->lsh.id = ntohl(lsh->id);
98
    llsh->lsh.rt = ntohl(lsh->rt);
98
    llsh->lsh.id = hid;
99
    llsh->lsh.rt = hrt;
99 100
    llsh->lsh.type = lsh->type;
100 101
    add_tail(&uplist, NODE llsh);
101 102
    if (ospf_hash_find(po->gr, oa->areaid, llsh->lsh.id, llsh->lsh.rt,
......
103 104
    {
104 105
      log(L_WARN
105 106
	  "Received bad LS req from: %I looking: RT: %I, ID: %I, Type: %u",
106
	  n->ip, lsh->rt, lsh->id, lsh->type);
107
	  n->ip, hrt, hid, lsh->type);
107 108
      ospf_neigh_sm(n, INM_BADLSREQ);
108 109
      rfree(upslab);
109 110
      return;

Also available in: Unified diff