Revision 04632fd7 proto/ospf/neighbor.c

View differences:

proto/ospf/neighbor.c
506 506

  
507 507
  u32 old_drid = ifa->drid;
508 508
  u32 old_bdrid = ifa->bdrid;
509
  ip_addr none = ospf_is_v2(p) ? IPA_NONE4 : IPA_NONE6;
509 510

  
510 511
  ifa->drid = ndr ? ndr->rid : 0;
511
  ifa->drip = ndr ? ndr->ip  : IPA_NONE;
512
  ifa->drip = ndr ? ndr->ip  : none;
512 513
  ifa->dr_iface_id = ndr ? ndr->iface_id : 0;
513 514

  
514 515
  ifa->bdrid = nbdr ? nbdr->rid : 0;
515
  ifa->bdrip = nbdr ? nbdr->ip  : IPA_NONE;
516
  ifa->bdrip = nbdr ? nbdr->ip  : none;
516 517

  
517 518
  DBG("DR=%R, BDR=%R\n", ifa->drid, ifa->bdrid);
518 519

  

Also available in: Unified diff