22 #include "ns3/tap-bridge.h"
23 #include "ns3/names.h"
64 NS_LOG_LOGIC (
"Install TapBridge on node " << node->
GetId () <<
" bridging net device " << nd);
68 bridge->SetBridgedNetDevice (nd);
76 Ptr<Node> node = Names::Find<Node> (nodeName);
90 Ptr<Node> node = Names::Find<Node> (nodeName);
void SetAttribute(std::string n1, const AttributeValue &v1)
smart pointer class similar to boost::intrusive_ptr
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
Hold a value for an Attribute.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
void SetTypeId(TypeId tid)
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
hold variables of type 'enum'
Ptr< Object > Create(void) const
A bridge to make it appear that a real host process is connected to an ns-3 net device.
TapBridgeHelper()
Construct a TapBridgeHelper to make life easier for people wanting to have their simulations interact...
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
ObjectFactory m_deviceFactory
ns-3 creates and configures tap device
void Set(std::string name, const AttributeValue &value)
hold objects of type ns3::Ipv4Address
Ipv4 addresses are stored in host order in this class.
uint32_t AddDevice(Ptr< NetDevice > device)
Associate a NetDevice to this node.
uint32_t GetId(void) const
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...