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

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -