diff -r 3bcec84f9f54 -r 95c426b1cb60 src/devices/p2p/p2p-topology.cc --- a/src/devices/p2p/p2p-topology.cc Fri May 25 21:53:24 2007 +0200 +++ b/src/devices/p2p/p2p-topology.cc Mon Jun 04 16:17:01 2007 +0200 @@ -40,8 +40,8 @@ Ptr PointToPointTopology::AddPointToPointLink( - Ptr n1, - Ptr n2, + Ptr n1, + Ptr n2, const DataRate& bps, const Time& delay) { @@ -65,8 +65,8 @@ void PointToPointTopology::AddIpv4Addresses( Ptr chan, - Ptr n1, const Ipv4Address& addr1, - Ptr n2, const Ipv4Address& addr2) + Ptr n1, const Ipv4Address& addr1, + Ptr n2, const Ipv4Address& addr2) { // Duplex link is assumed to be subnetted as a /30 @@ -79,13 +79,13 @@ Ptr nd1 = chan->GetDevice (0); Ptr nd2 = chan->GetDevice (1); // Make sure that nd1 belongs to n1 and nd2 to n2 - if ( (nd1->GetINode ()->GetId () == n2->GetId () ) && - (nd2->GetINode ()->GetId () == n1->GetId () ) ) + if ( (nd1->GetNode ()->GetId () == n2->GetId () ) && + (nd2->GetNode ()->GetId () == n1->GetId () ) ) { std::swap(nd1, nd2); } - NS_ASSERT (nd1->GetINode ()->GetId () == n1->GetId ()); - NS_ASSERT (nd2->GetINode ()->GetId () == n2->GetId ()); + NS_ASSERT (nd1->GetNode ()->GetId () == n1->GetId ()); + NS_ASSERT (nd2->GetNode ()->GetId () == n2->GetId ()); Ptr ip1 = n1->QueryInterface (IIpv4::iid); uint32_t index1 = ip1->AddInterface (nd1); @@ -105,38 +105,38 @@ void PointToPointTopology::AddIpv4Routes ( - Ptr n1, Ptr n2, Ptr chan) + Ptr n1, Ptr n2, Ptr chan) { // The PointToPoint channel is used to find the relevant NetDevices NS_ASSERT (chan->GetNDevices () == 2); Ptr nd1 = chan->GetDevice (0); Ptr nd2 = chan->GetDevice (1); - // Assert that n1 is the INode owning one of the two NetDevices + // Assert that n1 is the Node owning one of the two NetDevices // and make sure that nd1 corresponds to it - if (nd1->GetINode ()->GetId () == n1->GetId ()) + if (nd1->GetNode ()->GetId () == n1->GetId ()) { ; // Do nothing } - else if (nd2->GetINode ()->GetId () == n1->GetId ()) + else if (nd2->GetNode ()->GetId () == n1->GetId ()) { std::swap(nd1, nd2); } else { - NS_FATAL_ERROR("P2PTopo: INode does not contain an interface on Channel"); + NS_FATAL_ERROR("P2PTopo: Node does not contain an interface on Channel"); } - // Assert that n2 is the INode owning one of the two NetDevices + // Assert that n2 is the Node owning one of the two NetDevices // and make sure that nd2 corresponds to it - if (nd2->GetINode ()->GetId () != n2->GetId ()) + if (nd2->GetNode ()->GetId () != n2->GetId ()) { - NS_FATAL_ERROR("P2PTopo: INode does not contain an interface on Channel"); + NS_FATAL_ERROR("P2PTopo: Node does not contain an interface on Channel"); } // Assert that both are Ipv4 nodes - Ptr ip1 = nd1->GetINode ()->QueryInterface (IIpv4::iid); - Ptr ip2 = nd2->GetINode ()->QueryInterface (IIpv4::iid); + Ptr ip1 = nd1->GetNode ()->QueryInterface (IIpv4::iid); + Ptr ip2 = nd2->GetNode ()->QueryInterface (IIpv4::iid); NS_ASSERT(ip1 != 0 && ip2 != 0); // Get interface indexes for both nodes corresponding to the right channel