21#include "ns3/assert.h"
24#include "ns3/net-device.h"
26#include "ns3/pcap-file-wrapper.h"
42 bool explicitFilename)
51 bool explicitFilename)
53 Ptr<Ipv4> ipv4 = Names::Find<Ipv4>(ipv4Name);
62 std::pair<Ptr<Ipv4>,
uint32_t> pair = *i;
76 for (
uint32_t j = 0; j < ipv4->GetNInterfaces(); ++j)
94 bool explicitFilename)
101 if (node->GetId() != nodeid)
122 bool explicitFilename)
143 std::string ipv4Name,
145 bool explicitFilename)
155 std::string ipv4Name,
167 std::string ipv4Name,
169 bool explicitFilename)
171 Ptr<Ipv4> ipv4 = Names::Find<Ipv4>(ipv4Name);
203 std::pair<Ptr<Ipv4>,
uint32_t> pair = *i;
240 for (
uint32_t j = 0; j < ipv4->GetNInterfaces(); ++j)
273 bool explicitFilename)
285 bool explicitFilename)
298 bool explicitFilename)
305 if (node->GetId() != nodeid)
324 bool explicitFilename)
331 std::string ipv6Name,
333 bool explicitFilename)
335 Ptr<Ipv6> ipv6 = Names::Find<Ipv6>(ipv6Name);
344 std::pair<Ptr<Ipv6>,
uint32_t> pair = *i;
358 for (
uint32_t j = 0; j < ipv6->GetNInterfaces(); ++j)
376 bool explicitFilename)
383 if (node->GetId() != nodeid)
404 bool explicitFilename)
425 std::string ipv6Name,
427 bool explicitFilename)
437 std::string ipv6Name,
449 std::string ipv6Name,
451 bool explicitFilename)
453 Ptr<Ipv6> ipv6 = Names::Find<Ipv6>(ipv6Name);
485 std::pair<Ptr<Ipv6>,
uint32_t> pair = *i;
522 for (
uint32_t j = 0; j < ipv6->GetNInterfaces(); ++j)
566 bool explicitFilename)
579 bool explicitFilename)
586 if (node->GetId() != nodeid)
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...
void EnableAsciiIpv4All(std::string prefix)
Enable ascii trace output on all Ipv4 and interface pairs existing in the set of all nodes created in...
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.
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 EnableAsciiIpv6All(std::string prefix)
Enable ascii trace output on all Ipv6 and interface pairs existing in the set of all nodes created in...
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.
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 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...
Access to the IPv4 forwarding table, interfaces, and configuration.
holds a vector of std::pair of Ptr<Ipv4> and interface index.
std::vector< std::pair< Ptr< Ipv4 >, uint32_t > >::const_iterator Iterator
Container Const Iterator for pairs of Ipv4 smart pointer / Interface Index.
Iterator End() const
Get an iterator which indicates past-the-last Node in the container.
Iterator Begin() const
Get an iterator which refers to the first pair in the container.
Access to the IPv6 forwarding table, interfaces, and configuration.
Keep track of a set of IPv6 interfaces.
std::vector< std::pair< Ptr< Ipv6 >, uint32_t > >::const_iterator Iterator
Container Const Iterator for pairs of Ipv6 smart pointer / Interface Index.
Iterator End() const
Get an iterator which indicates past-the-last Node in the container.
Iterator Begin() const
Get an iterator which refers to the first pair in the container.
keep track of a set of node pointers.
std::vector< Ptr< Node > >::const_iterator Iterator
Node container iterator.
Iterator End() const
Get an iterator which indicates past-the-last Node in the container.
static NodeContainer GetGlobal()
Create a NodeContainer that contains a list of all nodes created through NodeContainer::Create() and ...
Iterator Begin() const
Get an iterator which refers to the first Node in the container.
virtual void EnablePcapIpv4Internal(std::string prefix, Ptr< Ipv4 > ipv4, uint32_t interface, bool explicitFilename)=0
Enable pcap output the indicated Ipv4 and interface pair.
void EnablePcapIpv4(std::string prefix, Ptr< Ipv4 > ipv4, uint32_t interface, bool explicitFilename=false)
Enable pcap output the indicated Ipv4 and interface pair.
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...
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...
void EnablePcapIpv6(std::string prefix, Ptr< Ipv6 > ipv6, uint32_t interface, bool explicitFilename=false)
Enable pcap output the indicated Ipv6 and interface pair.
virtual void EnablePcapIpv6Internal(std::string prefix, Ptr< Ipv6 > ipv6, uint32_t interface, bool explicitFilename)=0
Enable pcap output the indicated Ipv6 and interface pair.
Smart pointer class similar to boost::intrusive_ptr.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Every class exported by the ns3 library is enclosed in the ns3 namespace.