64 #include "ns3/core-module.h" 
   65 #include "ns3/network-module.h" 
   66 #include "ns3/csma-module.h" 
   67 #include "ns3/tap-bridge-module.h" 
   74 main (
int argc, 
char *argv[])
 
   77   cmd.
Parse (argc, argv);
 
void SetAttribute(std::string n1, const AttributeValue &v1)
Set an attribute in the underlying TapBridge net device when these devices are automatically created...
AttributeValue implementation for Boolean. 
Hold variables of type string. 
Ptr< NetDevice > Get(uint32_t i) const 
Get the Ptr stored in this container at a given index. 
static void Run(void)
Run the simulation. 
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name. 
NetDeviceContainer Install(Ptr< Node > node) const 
This method creates an ns3::CsmaChannel with the attributes configured by CsmaHelper::SetChannelAttri...
holds a vector of ns3::NetDevice pointers 
static void Bind(std::string name, const AttributeValue &value)
Parse command-line arguments. 
static void Destroy(void)
Execute the events scheduled with ScheduleDestroy(). 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
keep track of a set of node pointers. 
build a set of CsmaNetDevice objects 
Ptr< NetDevice > Install(Ptr< Node > node, Ptr< NetDevice > nd)
This method installs a TapBridge on the specified Node and forms the bridge with the NetDevice specif...
static void Stop(void)
Tell the Simulator the calling event should be the last one executed. 
Ptr< Node > Get(uint32_t i) const 
Get the Ptr stored in this container at a given index. 
Time Seconds(double value)
Construct a Time in the indicated unit. 
void Parse(int argc, char *argv[])
Parse the program arguments. 
build TapBridge to allow ns-3 simulations to interact with Linux tap devices and processes on the Lin...
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.