[ns] AODV existing neighbor list

Sohel Rahman kraraar at yahoo.com
Wed Mar 4 22:55:24 PST 2009


ear ns-users:
 
Can anyone tell me what is the function of existing neighbor list and how  it is integrated with routing table? I tried to access the value using following code, but didnt get anything. What did I wrong in my code? Can anyone help me?
 
 aodv_rt_entry *rt;
 rt = rtable.head();
 cout<<"AA"<<endl;
 while(rt){
 AODV_Neighbor *nb = rt->rt_nblist.lh_first;

 for (; nb; nb = nb->nb_link.le_next) {
 cout<<"Neighbor :"<<nb->nb_addr<<endl;
 cout<<"Expire :"<<nb->nb_expire<<endl;
 }
 rt = rt->rt_link.le_next;
 }
 
Thanks and Regards
 
Sohel


      Get your new Email address!
Grab the Email name you&#39;ve always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/



More information about the Ns-users mailing list