33 #include "ns3/node-container.h"
35 #include "ns3/callback.h"
38 #include "ns3/tcp-l4-protocol.h"
39 #include "ns3/udp-l4-protocol.h"
40 #include "ns3/dsr-options.h"
41 #include "ns3/dsr-routing.h"
42 #include "ns3/ipv4-route.h"
43 #include "ns3/node-list.h"
44 #include "ns3/names.h"
57 : m_agentFactory (o.m_agentFactory)
void SetDownTarget(IpL4Protocol::DownTargetCallback callback)
This method allows a caller to set the current down target callback set for this L4 protocol (IPv4 ca...
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)
Set the TypeId of the Objects to be created by this factory.
void Set(std::string name, const AttributeValue &value)
A layer between the sockets interface and IP.
DsrHelper()
Create an DsrHelper that makes life easier for people who want to install Dsr routing to nodes...
Ptr< Object > Create(void) const
Create an Object instance of the configured TypeId.
Callback< R > MakeCallback(R(T::*memPtr)(void), OBJ objPtr)
Ptr< ns3::dsr::DsrRouting > Create(Ptr< Node > node) const
void AggregateObject(Ptr< Object > other)
Aggregate two Objects together.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void Send(Ptr< Packet > packet, Ipv4Address source, Ipv4Address destination, uint8_t protocol, Ptr< Ipv4Route > route)
This function is called by higher layer protocol when sending packets.
DsrHelper * Copy(void) const
void Set(std::string name, const AttributeValue &value)
Set an attribute to be set during construction.
Implementation of the UDP protocol.
ObjectFactory m_agentFactory
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.