Revision 18a0c0bb proto/ospf/neighbor.c

View differences:

proto/ospf/neighbor.c
434 434
  p=(struct proto *)(ifa->proto);
435 435
  debug("%s: Inactivity timer fired on interface %s for neighbor %I.\n",
436 436
    p->name, ifa->iface->name, n->rid);
437
  ospf_neigh_remove(n);
438
}
439

  
440
void
441
ospf_neigh_remove(struct ospf_neighbor *n)
442
{
443
  struct ospf_iface *ifa;
444
  struct proto *p;
445

  
446
  ifa=n->ifa;
447
  p=(struct proto *)(ifa->proto);
437 448
  neigh_chstate(n, NEIGHBOR_DOWN);
438 449
  tm_stop(n->inactim);
439 450
  rfree(n->inactim);
......
467 478
  rem_node(NODE n);
468 479
  mb_free(n);
469 480
  debug("%s: Deleting neigbor.\n", p->name);
470
}                                                                               
471

  
481
}

Also available in: Unified diff