Skip to content

Commit

Permalink
Don't call ForcePath on MeshL2RoutingProtocol directly
Browse files Browse the repository at this point in the history
  • Loading branch information
joelagnel committed Apr 13, 2011
1 parent a25b6f5 commit fdad71f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scratch/mesh-paper-joel.cc
Expand Up @@ -221,7 +221,7 @@ MeshTest::ForcePath(int current, int destination, int retransmitter)
Mac48Address destination_mac = Mac48Address::ConvertFrom(meshDevices.Get(destination)->GetAddress());
Mac48Address retransmitter_mac = Mac48Address::ConvertFrom(meshDevices.Get(retransmitter)->GetAddress());
Ptr<ns3::MeshPointDevice> mp = dynamic_cast<ns3::MeshPointDevice*>(PeekPointer(meshDevices.Get(current)));
Ptr<ns3::MeshL2RoutingProtocol> m_proto = mp->GetRoutingProtocol();
Ptr<ns3::dot11s::HwmpProtocol> m_proto = dynamic_cast<ns3::dot11s::HwmpProtocol*>(PeekPointer(mp->GetRoutingProtocol()));
m_proto->ForcePath(destination_mac, retransmitter_mac);
}

Expand Down

0 comments on commit fdad71f

Please sign in to comment.