Accessing the routing protocol in AODV

23 views
Skip to first unread message

LeeGiS

unread,
Sep 28, 2014, 4:54:45 PM9/28/14
to ns-3-...@googlegroups.com
How can I access the aodv::RoutingProtocol? 
In DSR, it can be done like this:

Ptr<dsr::DsrRouting> protocol_pointer = dsr.Create(node);


But aodv.Create() returns Ptr< Ipv4RoutingProtocol >.

Is it possible to convert Ipv4RoutingProtocol to aodv::RoutingProtocol?


Thanks

Tommaso Pecorella

unread,
Sep 28, 2014, 5:21:39 PM9/28/14
to ns-3-...@googlegroups.com
Hi,

just a question... using a dynamic cast was too obvious ?

T.
Reply all
Reply to author
Forward
0 new messages