Revision b5e76398 proto/ospf/iface.c

View differences:

proto/ospf/iface.c
493 493
    ifa->flood_queue = mb_allocz(ifa->pool, ifa->flood_queue_size * sizeof(void *));
494 494
  }
495 495

  
496
  /* Do iface UP, unless there is no link and we use link detection */
497
  ospf_iface_sm(ifa, (ifa->check_link && !(ifa->iface->flags & IF_LINK_UP)) ? ISM_LOOP : ISM_UP);
496
  /* Do iface UP, unless there is no link (then wait in LOOP state) */
497
  if (!ifa->check_link || (ifa->iface->flags & IF_LINK_UP))
498
    ospf_iface_sm(ifa, ISM_UP);
499
  else
500
    ospf_iface_chstate(ifa, OSPF_IS_LOOP);
498 501
}
499 502

  
500 503
static inline void

Also available in: Unified diff