Revision 44724025 proto/ospf/dbdes.c

View differences:

proto/ospf/dbdes.c
38 38
      op->length=htons(length);
39 39
      ospf_pkt_finalize(ifa, op);
40 40
      sk_send_to(ifa->ip_sk,length, n->ip, OSPF_PROTO);
41
      debug("%s: DB_DES (I) sent for %u.\n", p->name, n->rid);
41
      debug("%s: DB_DES (I) sent for %I.\n", p->name, n->rid);
42 42
      break;
43 43

  
44 44
    case NEIGHBOR_EXCHANGE:
......
128 128
      }
129 129

  
130 130
      sk_send_to(ifa->ip_sk,length, n->ip, OSPF_PROTO);
131
      debug("%s: DB_DES sent to %u.\n", p->name, n->rid);
131
      debug("%s: DB_DES sent to %I.\n", p->name, n->rid);
132 132
      if(n->myimms.bit.ms) tm_start(n->rxmt_timer,ifa->rxmtint);
133 133
      else
134 134
      {
......
158 158
  n=(struct ospf_neighbor *)timer->data;
159 159
  ifa=n->ifa;
160 160
  p=(struct proto *)(ifa->proto);
161
  debug("%s: RXMT timer fired on interface %s for neigh: %u.\n",
161
  debug("%s: RXMT timer fired on interface %s for neigh: %I.\n",
162 162
    p->name, ifa->iface->name, n->rid);
163 163
  if(n->state<NEIGHBOR_LOADING) ospf_dbdes_tx(n);
164 164
  else
......
218 218

  
219 219
  if((n=find_neigh(ifa, nrid))==NULL)
220 220
  {
221
    debug("%s: Received dbdes from unknown neigbor! (%u)\n", p->name,
221
    debug("%s: Received dbdes from unknown neigbor! (%I)\n", p->name,
222 222
      nrid);
223 223
    return ;
224 224
  }
225 225

  
226 226
  if(ifa->iface->mtu<size)
227 227
  {
228
    debug("%s: Received dbdes larger than MTU from (%u)!\n", p->name, nrid);
228
    debug("%s: Received dbdes larger than MTU from (%I)!\n", p->name, nrid);
229 229
    return ;
230 230
  }
231 231

  
......
234 234
    case NEIGHBOR_DOWN:
235 235
    case NEIGHBOR_ATTEMPT:
236 236
    case NEIGHBOR_2WAY:
237
        debug("%s: Received dbdes from %u in bad state. (%u)\n", p->name, nrid);
237
        debug("%s: Received dbdes from %I in bad state.\n", p->name, nrid);
238 238
        return;
239 239
      break;
240 240
    case NEIGHBOR_INIT:
......
251 251
	  n->options=ps->options;
252 252
	  n->myimms.bit.ms=0;
253 253
	  n->imms.byte=ps->imms.byte;
254
          debug("%s: I'm slave to %u. \n", p->name, nrid);
254
          debug("%s: I'm slave to %I. \n", p->name, nrid);
255 255
	  ospf_neigh_sm(n, INM_NEGDONE);
256 256
	  tm_stop(n->rxmt_timer);
257 257
	  ospf_dbdes_tx(n);
......
266 266
	    n->options=ps->options;
267 267
            n->ddr=ntohl(ps->ddseq)-1;
268 268
            n->imms.byte=ps->imms.byte;
269
            debug("%s: I'm master to %u. \n", p->name, nrid);
269
            debug("%s: I'm master to %I. \n", p->name, nrid);
270 270
	    ospf_neigh_sm(n, INM_NEGDONE);
271 271
          }
272 272
	  else
273 273
          {
274
            debug("%s: Nothing happend to %u (imms=%u)", p->name, nrid,
274
            debug("%s: Nothing happend to %I (imms=%u)", p->name, nrid,
275 275
              ps->imms.byte);
276 276
            break;
277 277
          }
......
281 281
	  (ntohl(ps->ddseq)==n->ddr))
282 282
        {
283 283
          /* Duplicate packet */
284
          debug("%s: Received duplicate dbdes from (%u)!\n", p->name, nrid);
284
          debug("%s: Received duplicate dbdes from (%I)!\n", p->name, nrid);
285 285
	  if(n->imms.bit.ms==0)
286 286
	  {
287 287
            ospf_dbdes_tx(n);
......
355 355
	if((ps->imms.byte==n->imms.byte) && (ps->options=n->options) &&
356 356
	  (ps->ddseq==n->dds)) /* Only duplicate are accepted */
357 357
        {
358
          debug("%s: Received duplicate dbdes from (%u)!\n", p->name, nrid);
358
          debug("%s: Received duplicate dbdes from (%I)!\n", p->name, nrid);
359 359
          return;
360 360
        }
361 361
	else
......
364 364
        }
365 365
      break;
366 366
    defaut:
367
      die("%s: Received dbdes from %u in unknown state. (%u)\n", p->name, nrid);
367
      die("%s: Received dbdes from %I in unknown state.\n", p->name, nrid);
368 368
      break;
369 369
   }
370 370
}

Also available in: Unified diff