ns2 - Bug in um-olsr for NS 2.34? -


i think there bug in olsr::degree() method:

this method calculates number of symmetric neighbors of node y, excluding members of n.

i think

olsr_nb_tuple* nb_tuple = state_.find_nb_tuple(nb2hop_tuple->nb_main_addr()); 

should be

olsr_nb_tuple* nb_tuple = state_.find_nb_tuple(nb2hop_tuple->2_hop_addr()); 

am right?

yes friend, you're right. bug. correct line is:

olsr_nb_tuple* nb_tuple = state_.find_nb_tuple(nb2hop_tuple->2_hop_addr()); 

Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -