Revision df49d4e1 proto/ospf/lsupd.c

View differences:

proto/ospf/lsupd.c
64 64
	      ospf_hash_delete(nn->lsrqh,en);
65 65
	      if(EMPTY_SLIST(nn->lsrql)) ospf_neigh_sm(nn, INM_LOADDONE);
66 66
	      break;
67
	    default: bug("Bug in lsa_comp?\n");
67
	    default: bug("Bug in lsa_comp?");
68 68
	  }
69 69
	}
70 70
      }
......
279 279

  
280 280
    if(((diff+sizeof(struct ospf_lsa_header))>=size) ||
281 281
      ((ntohs(lsa->length)+diff)>size))
282
      log("%s: Received lsupd from %I is too short.\n", p->name,n->ip);
282
      log("%s: Received lsupd from %I is too short.", p->name,n->ip);
283 283

  
284 284
    lenn=ntohs(lsa->length);
285 285

  
286 286
    if((lenn<=sizeof(struct ospf_lsa_header))||(lenn!=(4*(lenn/4))))
287 287
    {
288
      log("Received LSA with bad length\n");
288
      log("Received LSA with bad length");
289 289
      ospf_neigh_sm(n,INM_BADLSREQ);
290 290
      break;
291 291
    }
292 292
    /* pg 143 (1) */
293 293
    if(lsa->checksum!=lsasum_check(lsa,NULL,po))
294 294
    {
295
      log("Received bad lsa checksum from %I\n",n->rid);
295
      log("Received bad lsa checksum from %I",n->rid);
296 296
      continue;
297 297
    }
298 298
    /* pg 143 (2) */
299 299
    if((lsa->type<LSA_T_RT)||(lsa->type>LSA_T_EXT))
300 300
    {
301
      log("Unknown LSA type from %I\n",n->rid);
301
      log("Unknown LSA type from %I",n->rid);
302 302
      continue;
303 303
    }
304 304
    /* pg 143 (3) */
305 305
    if((lsa->type==LSA_T_EXT)&&oa->stub)
306 306
    {
307
      log("Received External LSA in stub area from %I\n",n->rid);
307
      log("Received External LSA in stub area from %I",n->rid);
308 308
      continue;
309 309
    }
310 310
    ntohlsah(lsa,&lsatmp);

Also available in: Unified diff