Public Member Functions | Static Public Member Functions

ns3::InternetStackHelper Class Reference

aggregate IP/TCP/UDP functionality to existing Nodes. More...

#include <internet-stack-helper.h>

List of all members.

Public Member Functions

void Install (Ptr< Node > node) const
void Install (NodeContainer c) const
void SetNscStack (std::string soname)
 Enable or disable use of the Network Simulation Cradle stack.

Static Public Member Functions

static void EnableAscii (std::ostream &os, NodeContainer n)
static void EnableAsciiAll (std::ostream &os)
static void EnablePcapAll (std::string filename)

Detailed Description

aggregate IP/TCP/UDP functionality to existing Nodes.


Member Function Documentation

static void ns3::InternetStackHelper::EnableAscii ( std::ostream &  os,
NodeContainer  n 
) [static]
Parameters:
os output stream
n node container

Enable ascii output on these drop traces, for each node in the NodeContainer.. /NodeList/[i]/$ns3ArpL3Protocol/Drop /NodeList/[i]/$ns3Ipv4L3Protocol/Drop

static void ns3::InternetStackHelper::EnableAsciiAll ( std::ostream &  os  )  [static]
Parameters:
os output stream

Enable ascii output on these drop traces, for all nodes. /NodeList/[i]/$ns3ArpL3Protocol/Drop /NodeList/[i]/$ns3Ipv4L3Protocol/Drop

static void ns3::InternetStackHelper::EnablePcapAll ( std::string  filename  )  [static]

Enable pcap output on each protocol instance which is of the ns3::Ipv4L3Protocol type. Both Tx and Rx events will be logged.

Parameters:
filename filename prefix to use for pcap files.
Warning:
If you perform multiple simulations in a single script, each iteration of the simulation will result in the trace files being overwritten. We don't attempt to anticipate what a user might actually want to do, so we leave it up to them. If you want to save any particular data, do so manually at inter-simulation time.
void ns3::InternetStackHelper::Install ( NodeContainer  c  )  const

For each node in the input container, aggregate implementations of the ns3::Ipv4, ns3::Udp, and, ns3::Tcp classes. The program will assert if this method is called on a container with a node that already has an Ipv4 object aggregated to it.

Parameters:
c NodeContainer that holds the set of nodes on which to install the new stacks.
void ns3::InternetStackHelper::Install ( Ptr< Node node  )  const

Aggregate implementations of the ns3::Ipv4, ns3::Udp, and ns3::Tcp classes onto the provided node. This method will assert if called on a node that already has an Ipv4 object aggregated to it.

Parameters:
node The node on which to install the stack.
void ns3::InternetStackHelper::SetNscStack ( std::string  soname  ) 

Enable or disable use of the Network Simulation Cradle stack.

Give the NSC stack a shared library file name to use when creating the statck implementation. By providing a non-empty string as a parameter, you select the NSC version of the stack. By providing an empty string, you select the ns-3 default version.

Parameters:
soname name of the shared library with the nsc tcp stack to use, e.g. 'liblinux2.6.26.so'.

The documentation for this class was generated from the following file: