user606113
user606113

Reputation: 1

GEt DSR neighbor node

i am working in ns2 DSR protocol. i wnt to learn how to get neighbor node in DSR protocol and how to get Routing table in DSR. please help me

advance thanks

Upvotes: 0

Views: 1365

Answers (1)

Shrutika Joshi
Shrutika Joshi

Reputation: 11

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());

Upvotes: 1

Related Questions