Hi everyone,
I want to modify the routing table.
here is my code :
Ptr<Node> node = this->GetObject<Node> ();
Ptr<Ipv4> ipv4 = this->GetObject<Ipv4> ();
Ptr<Ipv4RoutingProtocol> rProto = ipv4->GetRoutingProtocol ();
Ptr<OutputStreamWrapper> routingStream = Create<OutputStreamWrapper> (&std::cout);
rProto->RoutingTable().DeleteRoute ("192.168.1.7");
rProto->PrintRoutingTable(routingStream);
erreur: ‘class ns3::Ipv4RoutingProtocol’ has no member named ‘RoutingTable’
I couldn't alter the table.
Can anybody provide me an idea or a suggest?
Thank you in advance.