23 #include "ns3/abort.h" 24 #include "ns3/assert.h" 28 #include "ns3/names.h" 29 #include "ns3/net-device.h" 30 #include "ns3/pcap-file-wrapper.h" 47 Ptr<Ipv4> ipv4 = Names::Find<Ipv4> (ipv4Name);
56 std::pair<Ptr<Ipv4>, uint32_t> pair = *i;
70 for (uint32_t j = 0; j < ipv4->GetNInterfaces (); ++j)
92 if (node->
GetId () != nodeid)
130 std::string ipv4Name,
132 bool explicitFilename)
153 std::string ipv4Name,
155 bool explicitFilename)
157 Ptr<Ipv4> ipv4 = Names::Find<Ipv4> (ipv4Name);
187 std::pair<Ptr<Ipv4>, uint32_t> pair = *i;
222 for (uint32_t j = 0; j < ipv4->GetNInterfaces (); ++j)
256 bool explicitFilename)
279 bool explicitFilename)
286 if (node->
GetId () != nodeid)
310 Ptr<Ipv6> ipv6 = Names::Find<Ipv6> (ipv6Name);
319 std::pair<Ptr<Ipv6>, uint32_t> pair = *i;
333 for (uint32_t j = 0; j < ipv6->GetNInterfaces (); ++j)
355 if (node->
GetId () != nodeid)
412 std::string ipv6Name,
414 bool explicitFilename)
416 Ptr<Ipv6> ipv6 = Names::Find<Ipv6> (ipv6Name);
446 std::pair<Ptr<Ipv6>, uint32_t> pair = *i;
481 for (uint32_t j = 0; j < ipv6->GetNInterfaces (); ++j)
534 bool explicitFilename)
541 if (node->
GetId () != nodeid)
Smart pointer class similar to boost::intrusive_ptr.
uint32_t GetId(void) const
Keep track of a set of IPv6 interfaces.
holds a vector of std::pair of Ptr<Ipv4> and interface index.
std::vector< Ptr< Node > >::const_iterator Iterator
Node container iterator.
Access to the IPv6 forwarding table, interfaces, and configuration.
void EnablePcapIpv4(std::string prefix, Ptr< Ipv4 > ipv4, uint32_t interface, bool explicitFilename=false)
Enable pcap output the indicated Ipv4 and interface pair.
void EnablePcapIpv6All(std::string prefix)
Enable pcap output on all Ipv6 and interface pairs existing in the set of all nodes created in the si...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Iterator Begin(void) const
Get an iterator which refers to the first pair in the container.
virtual void EnableAsciiIpv6Internal(Ptr< OutputStreamWrapper > stream, std::string prefix, Ptr< Ipv6 > ipv6, uint32_t interface, bool explicitFilename)=0
Enable ascii trace output on the indicated Ipv6 and interface pair.
void EnableAsciiIpv4(std::string prefix, Ptr< Ipv4 > ipv4, uint32_t interface, bool explicitFilename=false)
Enable ascii trace output on the indicated Ipv4 and interface pair.
std::vector< std::pair< Ptr< Ipv6 >, uint32_t > >::const_iterator Iterator
Container Const Iterator for pairs of Ipv6 smart pointer / Interface Index.
Iterator End(void) const
Get an iterator which indicates past-the-last Node in the container.
virtual void EnableAsciiIpv4Internal(Ptr< OutputStreamWrapper > stream, std::string prefix, Ptr< Ipv4 > ipv4, uint32_t interface, bool explicitFilename)=0
Enable ascii trace output on the indicated Ipv4 and interface pair.
void EnableAsciiIpv4All(std::string prefix)
Enable ascii trace output on all Ipv4 and interface pairs existing in the set of all nodes created in...
Access to the IPv4 forwarding table, interfaces, and configuration.
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
keep track of a set of node pointers.
void EnablePcapIpv6(std::string prefix, Ptr< Ipv6 > ipv6, uint32_t interface, bool explicitFilename=false)
Enable pcap output the indicated Ipv6 and interface pair.
void EnableAsciiIpv4Impl(Ptr< OutputStreamWrapper > stream, std::string prefix, uint32_t nodeid, uint32_t interface, bool explicitFilename)
Enable ascii trace output on the Ipv4 and interface pair specified by a global node-id (of a previous...
std::vector< std::pair< Ptr< Ipv4 >, uint32_t > >::const_iterator Iterator
Container Const Iterator for pairs of Ipv4 smart pointer / Interface Index.
void EnableAsciiIpv6All(std::string prefix)
Enable ascii trace output on all Ipv6 and interface pairs existing in the set of all nodes created in...
static NodeContainer GetGlobal(void)
Create a NodeContainer that contains a list of all nodes created through NodeContainer::Create() and ...
void EnableAsciiIpv6Impl(Ptr< OutputStreamWrapper > stream, std::string prefix, uint32_t nodeid, uint32_t interface, bool explicitFilename)
Enable ascii trace output on the Ipv6 and interface pair specified by a global node-id (of a previous...
virtual void EnablePcapIpv4Internal(std::string prefix, Ptr< Ipv4 > ipv4, uint32_t interface, bool explicitFilename)=0
Enable pcap output the indicated Ipv4 and interface pair.
Iterator End(void) const
Get an iterator which indicates past-the-last Node in the container.
void EnablePcapIpv4All(std::string prefix)
Enable pcap output on all Ipv4 and interface pairs existing in the set of all nodes created in the si...
virtual void EnablePcapIpv6Internal(std::string prefix, Ptr< Ipv6 > ipv6, uint32_t interface, bool explicitFilename)=0
Enable pcap output the indicated Ipv6 and interface pair.
void EnableAsciiIpv6(std::string prefix, Ptr< Ipv6 > ipv6, uint32_t interface, bool explicitFilename=false)
Enable ascii trace output on the indicated Ipv6 and interface pair.
Iterator Begin(void) const
Get an iterator which refers to the first pair in the container.