diff -Naur src/helper/ipv4-interface-container.cc ../../ns-3.2/src/helper/ipv4-interface-container.cc --- src/helper/ipv4-interface-container.cc 2008-09-22 12:45:12.000000000 -0500 +++ ../../ns-3.2/src/helper/ipv4-interface-container.cc 2008-10-08 14:54:25.000000000 -0500 @@ -11,6 +11,32 @@ { return m_interfaces.size (); } +//====Abdul Code============= +void +Ipv4InterfaceContainer::SetDown (uint32_t i) +{ + Ptr ipv4 = m_interfaces[i].first; + uint32_t interface = m_interfaces[i].second; +// cout << interface << endl; + return ipv4->SetDown (interface); +} + +Ptr +Ipv4InterfaceContainer::Get (uint32_t i) const +{ + Ptr ipv4 = m_interfaces[i].first; + return ipv4; +} + +uint32_t +Ipv4InterfaceContainer::GetInterface(uint32_t i) const +{ + uint32_t interface = m_interfaces[i].second; + return interface; +} + +//========================== + Ipv4Address Ipv4InterfaceContainer::GetAddress (uint32_t i) const { diff -Naur src/helper/ipv4-interface-container.h ../../ns-3.2/src/helper/ipv4-interface-container.h --- src/helper/ipv4-interface-container.h 2008-09-22 12:45:12.000000000 -0500 +++ ../../ns-3.2/src/helper/ipv4-interface-container.h 2008-10-08 14:54:49.000000000 -0500 @@ -24,7 +24,12 @@ * \returns the number of interfaces stored in this Ipv4InterfaceContainer. */ uint32_t GetN (void) const; +//============= Abdul Code============== +void SetDown (uint32_t i); +Ptr Get (uint32_t i) const; +uint32_t GetInterface(uint32_t i) const; +//============Abdul Code=================== Ipv4Address GetAddress (uint32_t i) const; void SetMetric (uint32_t i, uint16_t metric);