Introspection did not find any typical Config paths.
More...
#include "dsr-options.h"
Public Member Functions | |
DsrOptionAck () | |
virtual | ~DsrOptionAck () |
virtual TypeId | GetInstanceTypeId () const |
Get the instance type ID. More... | |
virtual uint8_t | GetOptionNumber () const |
Get the option number. More... | |
virtual uint8_t | Process (Ptr< Packet > packet, Ptr< Packet > dsrP, Ipv4Address ipv4Address, Ipv4Address source, Ipv4Header const &ipv4Header, uint8_t protocol, bool &isPromisc, Ipv4Address promiscSource) |
Process method. More... | |
Public Member Functions inherited from ns3::dsr::DsrOptions | |
DsrOptions () | |
Constructor. More... | |
virtual | ~DsrOptions () |
Destructor. More... | |
bool | CheckDuplicates (Ipv4Address ipv4Address, std::vector< Ipv4Address > &vec) |
Check if the route already contains the node ip address. More... | |
bool | ContainAddressAfter (Ipv4Address ipv4Address, Ipv4Address destAddress, std::vector< Ipv4Address > &nodeList) |
Search for the ipv4 address in the node list. More... | |
std::vector< Ipv4Address > | CutRoute (Ipv4Address ipv4Address, std::vector< Ipv4Address > &nodeList) |
Cut the route from ipv4Address to the end of the route vector. More... | |
uint32_t | GetIDfromIP (Ipv4Address address) |
Get the node id with Ipv4Address. More... | |
Ptr< Node > | GetNode () const |
Get the node. More... | |
Ptr< Node > | GetNodeWithAddress (Ipv4Address ipv4Address) |
Get the node object with Ipv4Address. More... | |
bool | IfDuplicates (std::vector< Ipv4Address > &vec, std::vector< Ipv4Address > &vec2) |
Check if the two vectors contain duplicate or not. More... | |
void | PrintVector (std::vector< Ipv4Address > &vec) |
Print out the elements in the route vector. More... | |
void | RemoveDuplicates (std::vector< Ipv4Address > &vec) |
Remove the duplicates from the route. More... | |
bool | ReverseRoutes (std::vector< Ipv4Address > &vec) |
Reverse the routes. More... | |
Ipv4Address | ReverseSearchNextHop (Ipv4Address ipv4Address, std::vector< Ipv4Address > &vec) |
Reverse search for the next hop in the route. More... | |
Ipv4Address | ReverseSearchNextTwoHop (Ipv4Address ipv4Address, std::vector< Ipv4Address > &vec) |
Reverse search for the next two hop in the route. More... | |
void | ScheduleReply (Ptr< Packet > &packet, std::vector< Ipv4Address > &nodeList, Ipv4Address &source, Ipv4Address &destination) |
Schedule the intermediate node route request broadcast. More... | |
Ipv4Address | SearchNextHop (Ipv4Address ipv4Address, std::vector< Ipv4Address > &vec) |
Search for the next hop in the route. More... | |
void | SetNode (Ptr< Node > node) |
Set the node. More... | |
virtual Ptr< Ipv4Route > | SetRoute (Ipv4Address nextHop, Ipv4Address srcAddress) |
Set the route to use for data packets, used by the option headers when sending data/control packets. More... | |
Public Member Functions inherited from ns3::Object | |
Object () | |
Constructor. More... | |
virtual | ~Object () |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose (void) |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator (void) const |
Get an iterator to the Objects aggregated to this one. More... | |
template<typename T > | |
Ptr< T > | GetObject (void) const |
Get a pointer to the requested aggregated Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. More... | |
void | Initialize (void) |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized (void) const |
Check if the object has been initialized. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
Public Member Functions inherited from ns3::ObjectBase | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising erros. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::dsr::DsrOptions | |
static TypeId | GetTypeId (void) |
Get the type identificator. More... | |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId (void) |
Register this type. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Static Public Attributes | |
static const uint8_t | OPT_NUMBER = 32 |
The Dsr Ack option number. More... | |
Private Attributes | |
Ptr< Ipv4 > | m_ipv4 |
The ipv4 layer 3. More... | |
Ptr< dsr::DsrRouteCache > | m_routeCache |
The route cache. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | DoDispose (void) |
Destructor implementation. More... | |
virtual void | DoInitialize (void) |
Initialize() implementation. More... | |
virtual void | NotifyNewAggregate (void) |
Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
Protected Attributes inherited from ns3::dsr::DsrOptions | |
Time | ActiveRouteTimeout |
The active route timeout value. More... | |
Ipv4Address | Broadcast |
The broadcast IP address. More... | |
TracedCallback< Ptr< const Packet > > | m_dropTrace |
Drop trace callback. More... | |
std::vector< Ipv4Address > | m_finalRoute |
The vector of final Ipv4 address. More... | |
Ptr< Ipv4 > | m_ipv4 |
The ipv4. More... | |
std::vector< Ipv4Address > | m_ipv4Address |
The vector of Ipv4 address. More... | |
Ptr< Ipv4Route > | m_ipv4Route |
The ipv4 route. More... | |
Ptr< dsr::DsrRouteCache > | m_routeCache |
The route cache table. More... | |
Ptr< dsr::DsrRreqTable > | m_rreqTable |
The route request table. More... | |
TracedCallback< const DsrOptionSRHeader & > | m_rxPacketTrace |
The receive trace back, only triggered when final destination receive data packet. More... | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid (void) |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Introspection did not find any typical Config paths.
Dsr Option Ack.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Size of this type is 200 bytes (on a 64-bit architecture).
Definition at line 540 of file dsr-options.h.
ns3::dsr::DsrOptionAck::DsrOptionAck | ( | ) |
Definition at line 1653 of file dsr-options.cc.
References NS_LOG_FUNCTION_NOARGS.
|
virtual |
Definition at line 1658 of file dsr-options.cc.
References NS_LOG_FUNCTION_NOARGS.
|
virtual |
Get the instance type ID.
Reimplemented from ns3::Object.
Definition at line 1663 of file dsr-options.cc.
References GetTypeId().
|
virtual |
Get the option number.
Implements ns3::dsr::DsrOptions.
Definition at line 1668 of file dsr-options.cc.
References NS_LOG_FUNCTION_NOARGS, and OPT_NUMBER.
|
static |
Get the type ID.
Definition at line 1643 of file dsr-options.cc.
References ns3::TypeId::SetParent().
Referenced by GetInstanceTypeId().
|
virtual |
Process method.
Called from DsrRouting::Receive.
packet | the packet |
dsrP | the clean packet with payload |
ipv4Address | the IPv4 address |
source | IPv4 address of the source |
ipv4Header | the IPv4 header of packet received |
protocol | the protocol number of the up layer |
isPromisc | if the packet must be dropped |
promiscSource | IPv4 address |
Implements ns3::dsr::DsrOptions.
Definition at line 1674 of file dsr-options.cc.
References ns3::Packet::Copy(), ns3::dsr::DsrOptionAckHeader::GetAckId(), ns3::dsr::DsrOptions::GetNodeWithAddress(), ns3::Object::GetObject(), ns3::dsr::DsrOptionAckHeader::GetRealDst(), ns3::dsr::DsrOptionAckHeader::GetRealSrc(), ns3::dsr::DsrOptionAckHeader::GetSerializedSize(), NS_LOG_FUNCTION, and ns3::Packet::RemoveHeader().
The ipv4 layer 3.
Definition at line 573 of file dsr-options.h.
|
private |
The route cache.
Definition at line 569 of file dsr-options.h.
|
static |
The Dsr Ack option number.
Definition at line 546 of file dsr-options.h.
Referenced by GetOptionNumber().