10#include "ns3/assert.h"
13#include "ns3/net-device.h"
15#include "ns3/pcap-file-wrapper.h"
31 bool explicitFilename)
40 bool explicitFilename)
49 for (
auto i = c.
Begin(); i != c.
End(); ++i)
58 for (
auto i = n.
Begin(); i != n.
End(); ++i)
64 for (
uint32_t j = 0; j < ipv4->GetNInterfaces(); ++j)
82 bool explicitFilename)
86 for (
auto i = n.
Begin(); i != n.
End(); ++i)
89 if (node->GetId() != nodeid)
110 bool explicitFilename)
131 std::string ipv4Name,
133 bool explicitFilename)
143 std::string ipv4Name,
155 std::string ipv4Name,
157 bool explicitFilename)
189 for (
auto i = c.
Begin(); i != c.
End(); ++i)
221 for (
auto i = n.
Begin(); i != n.
End(); ++i)
227 for (
uint32_t j = 0; j < ipv4->GetNInterfaces(); ++j)
260 bool explicitFilename)
272 bool explicitFilename)
285 bool explicitFilename)
289 for (
auto i = n.
Begin(); i != n.
End(); ++i)
292 if (node->GetId() != nodeid)
311 bool explicitFilename)
318 std::string ipv6Name,
320 bool explicitFilename)
329 for (
auto i = c.
Begin(); i != c.
End(); ++i)
338 for (
auto i = n.
Begin(); i != n.
End(); ++i)
344 for (
uint32_t j = 0; j < ipv6->GetNInterfaces(); ++j)
362 bool explicitFilename)
366 for (
auto i = n.
Begin(); i != n.
End(); ++i)
369 if (node->GetId() != nodeid)
390 bool explicitFilename)
411 std::string ipv6Name,
413 bool explicitFilename)
423 std::string ipv6Name,
435 std::string ipv6Name,
437 bool explicitFilename)
469 for (
auto i = c.
Begin(); i != c.
End(); ++i)
501 for (
auto i = n.
Begin(); i != n.
End(); ++i)
507 for (
uint32_t j = 0; j < ipv6->GetNInterfaces(); ++j)
551 bool explicitFilename)
564 bool explicitFilename)
568 for (
auto i = n.
Begin(); i != n.
End(); ++i)
571 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.
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.
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.
static Ptr< T > Find(std::string path)
Given a name path string, look to see if there's an object in the system with that associated to it.
keep track of a set of node pointers.
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.