ns-allinone-2.35/ns-2.35/aodv/aodv.cc
void
AODV::nb_delete(nsaddr_t id) {
AODV_Neighbor *nb = nbhead.lh_first;

 log_link_del(id);
 seqno += 2;     // Set of neighbors changed
 assert ((seqno%2) == 0);

 for(; nb; nb = nb->nb_link.le_next) {
   if(nb->nb_addr == id) {
     LIST_REMOVE(nb,nb_link);
     delete nb;
     break;
   }
 }

 handle_link_failure(id);

}
/*
 * Called when we receive *explicit* notification that a Neighbor
 * is no longer reachable.
 */
Called when we receive *explicit* notification that a Neighbor
is no longer reachable.
Called when we receive * explicit * notification that a Neighbor is no longer reachable .
void
AODV::nb_delete(nsaddr_t id) {
AODV_Neighbor *nb = nbhead.lh_first;
 log_link_del(id);
 seqno += 2;     
 assert ((seqno%2) == 0);
 for(; nb; nb = nb->nb_link.le_next) {
   if(nb->nb_addr == id) {
     LIST_REMOVE(nb,nb_link);
     delete nb;
     break;
   }
 }
 handle_link_failure(id);
}
void AODV :: nb_delete ( nsaddr_t id ) { AODV_Neighbor * nb = nbhead . lh_first ; log_link_del ( id ) ; seqno += 2 ; assert ( ( seqno % 2 ) == 0 ) ; for ( ; nb ; nb = nb -> nb_link . le_next ) { if ( nb -> nb_addr == id ) { LIST_REMOVE ( nb , nb_link ) ; delete nb ; break ; } } handle_link_failure ( id ) ; }
Called when we receive *explicit* notification that a Neighbor
 is no longer reachable.
Called when we receive * explicit * notification that a Neighbor is no longer reachable .
// Set of neighbors changed