开发者

GEt DSR neighbor node

开发者 https://www.devze.com 2023-02-08 18:45 出处:网络
i am working in ns2 DSR protocol. i wnt to 开发者_JAVA技巧learn how to get neighbor node in DSR protocol and how to get Routing table in DSR.please help me

i am working in ns2 DSR protocol. i wnt to 开发者_JAVA技巧learn how to get neighbor node in DSR protocol and how to get Routing table in DSR. please help me

advance thanks


Use the addRoute function defined under mobicache.cc to display the cache contents..a simple printf statement will display all the routes each time the addRoute function is called:

path &p = cache[0];
printf("%s %d %s", routecache->net_id.dump(), p.length(), p.dump());
0

精彩评论

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

关注公众号