From: Richard Whitehouse Date: Sun, 20 Feb 2011 02:06:51 +0000 (+0000) Subject: Swap map around to make it easier for the bridge helper X-Git-Url: https://git.richardwhiuk.com/?a=commitdiff_plain;h=f8fffe893ab5ebe625f35c3db3e127c0ff9a0988;p=ns-moose.git Swap map around to make it easier for the bridge helper --- diff --git a/code/src/helper/moose-helper.cc b/code/src/helper/moose-helper.cc index aeb27a0..c894686 100644 --- a/code/src/helper/moose-helper.cc +++ b/code/src/helper/moose-helper.cc @@ -161,7 +161,7 @@ void MooseHelper::Create(MooseHelper::Network& n){ std::cout << "parents from " << root << ":" << std::endl; boost::graph_traits::vertex_iterator vi, vend; - std::map > routes; + std::map, MoosePrefixAddress> routes; for (boost::tie(vi, vend) = vertices(g); vi != vend; ++vi) { std::cout << root << "->" << *vi << " "; @@ -180,7 +180,7 @@ void MooseHelper::Create(MooseHelper::Network& n){ std::cout << current << std::endl; - routes[MoosePrefixAddress(root)] = portMap[root][current]; + routes[portMap[root][current]] = MoosePrefixAddress(root); } else {