开发者

Bug in um-olsr for NS 2.34?

I think there is a bug in OLSR::degree() method:

This met开发者_C百科hod calculates the number of symmetric neighbors of node y, EXCLUDING all the 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 I right?


Yes friend, you're right. this is a bug. The correct line is:

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


i'm using UM-OLSR version 0.8.8 and the fix you guys gave did not compile, the correct way to fix the bug in UM-OLSR version 0.8.8 is:

OLSR_nb_tuple* nb_tuple =
state_.find_nb_tuple(nb2hop_tuple->nb2hop_addr());
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜