20 #include "ns3/abort.h"
21 #include "ns3/assert.h"
23 #include "ns3/names.h"
24 #include "ns3/net-device.h"
26 #include "ns3/pcap-file-wrapper.h"
42 bool explicitFilename)
51 bool explicitFilename)
60 for (
auto i = c.
Begin(); i != c.
End(); ++i)
69 for (
auto i = n.
Begin(); i != n.
End(); ++i)
75 for (uint32_t j = 0; j <
ipv4->GetNInterfaces(); ++j)
93 bool explicitFilename)
97 for (
auto i = n.
Begin(); i != n.
End(); ++i)
100 if (node->
GetId() != nodeid)
121 bool explicitFilename)
142 std::string ipv4Name,
144 bool explicitFilename)
154 std::string ipv4Name,
166 std::string ipv4Name,
168 bool explicitFilename)
200 for (
auto i = c.
Begin(); i != c.
End(); ++i)
232 for (
auto i = n.
Begin(); i != n.
End(); ++i)
238 for (uint32_t j = 0; j <
ipv4->GetNInterfaces(); ++j)
271 bool explicitFilename)
283 bool explicitFilename)
296 bool explicitFilename)
300 for (
auto i = n.
Begin(); i != n.
End(); ++i)
303 if (node->
GetId() != nodeid)
322 bool explicitFilename)
329 std::string ipv6Name,
331 bool explicitFilename)
333 Ptr<Ipv6> ipv6 = Names::Find<Ipv6>(ipv6Name);
340 for (
auto i = c.
Begin(); i != c.
End(); ++i)
349 for (
auto i = n.
Begin(); i != n.
End(); ++i)
355 for (uint32_t j = 0; j < ipv6->GetNInterfaces(); ++j)
373 bool explicitFilename)
377 for (
auto i = n.
Begin(); i != n.
End(); ++i)
380 if (node->
GetId() != nodeid)
401 bool explicitFilename)
422 std::string ipv6Name,
424 bool explicitFilename)
434 std::string ipv6Name,
446 std::string ipv6Name,
448 bool explicitFilename)
450 Ptr<Ipv6> ipv6 = Names::Find<Ipv6>(ipv6Name);
480 for (
auto i = c.
Begin(); i != c.
End(); ++i)
512 for (
auto i = n.
Begin(); i != n.
End(); ++i)
518 for (uint32_t j = 0; j < ipv6->GetNInterfaces(); ++j)
562 bool explicitFilename)
575 bool explicitFilename)
579 for (
auto i = n.
Begin(); i != n.
End(); ++i)
582 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.
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.
Ptr< T > GetObject() const
Get a pointer to the requested aggregated Object.
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.