#include <dsr-options.h>
Inheritance diagram for ns3::dsr::DsrOptions:
Collaboration diagram for ns3::dsr::DsrOptions:Public Member Functions | |
| DsrOptions () | |
| Constructor. | |
| virtual | ~DsrOptions () |
| Destructor. | |
| bool | CheckDuplicates (Ipv4Address ipv4Address, std::vector< Ipv4Address > &vec) |
| bool | ContainAddressAfter (Ipv4Address ipv4Address, Ipv4Address destAddress, std::vector< Ipv4Address > &nodeList) |
| Search for the ipv4 address in the node list. | |
| std::vector< Ipv4Address > | CutRoute (Ipv4Address ipv4Address, std::vector< Ipv4Address > &nodeList) |
| Cut the route from ipv4Address to the end of the route vector. | |
| uint32_t | GetIDfromIP (Ipv4Address address) |
| Ptr< Node > | GetNode () const |
| Get the node. | |
| Ptr< Node > | GetNodeWithAddress (Ipv4Address ipv4Address) |
| virtual uint8_t | GetOptionNumber () const =0 |
| Get the option number. | |
| bool | IfDuplicates (std::vector< Ipv4Address > &vec, std::vector< Ipv4Address > &vec2) |
| void | PrintVector (std::vector< Ipv4Address > &vec) |
| virtual uint8_t | Process (Ptr< Packet > packet, Ptr< Packet > dsrP, Ipv4Address ipv4Address, Ipv4Address source, Ipv4Header const &ipv4Header, uint8_t protocol, bool &isPromisc)=0 |
| Process method. | |
| void | RemoveDuplicates (std::vector< Ipv4Address > &vec) |
| bool | ReverseRoutes (std::vector< Ipv4Address > &vec) |
| Reverse the routes. | |
| Ipv4Address | ReverseSearchNextHop (Ipv4Address ipv4Address, std::vector< Ipv4Address > &vec) |
| void | ScheduleReply (Ptr< Packet > &packet, std::vector< Ipv4Address > &nodeList, Ipv4Address &source, Ipv4Address &destination) |
| Ipv4Address | SearchNextHop (Ipv4Address ipv4Address, std::vector< Ipv4Address > &vec) |
| void | SetNode (Ptr< Node > node) |
| Set the node. | |
| virtual Ptr< Ipv4Route > | SetRoute (Ipv4Address nextHop, Ipv4Address srcAddress) |
Public Member Functions inherited from ns3::Object | |
| Object () | |
| virtual | ~Object () |
| void | AggregateObject (Ptr< Object > other) |
| void | Dispose (void) |
| AggregateIterator | GetAggregateIterator (void) const |
| virtual TypeId | GetInstanceTypeId (void) const |
| template<typename T > | |
| Ptr< T > | GetObject (void) const |
| template<typename T > | |
| Ptr< T > | GetObject (TypeId tid) const |
| void | Start (void) |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| SimpleRefCount () | |
| SimpleRefCount (const SimpleRefCount &o) | |
| uint32_t | GetReferenceCount (void) const |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| void | Ref (void) const |
| void | Unref (void) const |
Public Member Functions inherited from ns3::ObjectBase | |
| virtual | ~ObjectBase () |
| void | GetAttribute (std::string name, AttributeValue &value) const |
| bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
| bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
| bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
| bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
| bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
| Get the type identificator. | |
Protected Attributes | |
| Time | ActiveRouteTimeout |
| The active route timeout value. | |
| Ipv4Address | Broadcast |
| The broadcast IP address. | |
| TracedCallback< Ptr< const Packet > > | m_dropTrace |
| Drop trace callback. | |
| std::vector< Ipv4Address > | m_finalRoute |
| The vector of final Ipv4 address. | |
| Ptr< Ipv4 > | m_ipv4 |
| The ipv4. | |
| std::vector< Ipv4Address > | m_ipv4Address |
| The vector of Ipv4 address. | |
| Ptr< Ipv4Route > | m_ipv4Route |
| The ipv4 route. | |
| Ptr< dsr::RouteCache > | m_routeCache |
| The route cache table. | |
| Ptr< dsr::RreqTable > | m_rreqTable |
| The route request table. | |
| TracedCallback< const DsrOptionSRHeader & > | m_rxPacketTrace |
Private Attributes | |
| Ptr< Node > | m_node |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::Object | |
| Object (const Object &o) | |
| virtual void | DoDispose (void) |
| virtual void | DoStart (void) |
| virtual void | NotifyNewAggregate (void) |
Definition at line 74 of file dsr-options.h.
| ns3::dsr::DsrOptions::DsrOptions | ( | ) |
|
virtual |
| bool ns3::dsr::DsrOptions::CheckDuplicates | ( | Ipv4Address | ipv4Address, |
| std::vector< Ipv4Address > & | vec | ||
| ) |
Definition at line 264 of file dsr-options.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::dsr::DsrOptionRreq::Process().
Here is the caller graph for this function:| bool ns3::dsr::DsrOptions::ContainAddressAfter | ( | Ipv4Address | ipv4Address, |
| Ipv4Address | destAddress, | ||
| std::vector< Ipv4Address > & | nodeList | ||
| ) |
Search for the ipv4 address in the node list.
Definition at line 106 of file dsr-options.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::dsr::DsrOptionSR::Process().
Here is the caller graph for this function:| std::vector< Ipv4Address > ns3::dsr::DsrOptions::CutRoute | ( | Ipv4Address | ipv4Address, |
| std::vector< Ipv4Address > & | nodeList | ||
| ) |
Cut the route from ipv4Address to the end of the route vector.
Definition at line 122 of file dsr-options.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::dsr::DsrOptionRrep::Process().
Here is the caller graph for this function:| uint32_t ns3::dsr::DsrOptions::GetIDfromIP | ( | Ipv4Address | address | ) |
Definition at line 326 of file dsr-options.cc.
References ns3::Ipv4::GetAddress(), ns3::Ipv4InterfaceAddress::GetLocal(), ns3::NodeList::GetNNodes(), GetNode(), ns3::Object::GetObject(), and NS_LOG_FUNCTION.
Referenced by ns3::dsr::DsrOptionRreq::Process(), and ns3::dsr::DsrOptionRrep::Process().
Here is the call graph for this function:
Here is the caller graph for this function:Get the node.
Definition at line 100 of file dsr-options.cc.
References m_node, and NS_LOG_FUNCTION_NOARGS.
Referenced by GetIDfromIP(), and GetNodeWithAddress().
Here is the caller graph for this function:| Ptr< Node > ns3::dsr::DsrOptions::GetNodeWithAddress | ( | Ipv4Address | ipv4Address | ) |
Definition at line 342 of file dsr-options.cc.
References ns3::Ipv4::GetInterfaceForAddress(), ns3::NodeList::GetNNodes(), GetNode(), ns3::Object::GetObject(), and NS_LOG_FUNCTION.
Referenced by ns3::dsr::DsrOptionRerr::DoSendError(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrOptionRrep::Process(), ns3::dsr::DsrOptionSR::Process(), ns3::dsr::DsrOptionRerr::Process(), ns3::dsr::DsrOptionAckReq::Process(), and ns3::dsr::DsrOptionAck::Process().
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtual |
Get the option number.
Implemented in ns3::dsr::DsrOptionAck, ns3::dsr::DsrOptionAckReq, ns3::dsr::DsrOptionRerr, ns3::dsr::DsrOptionSR, ns3::dsr::DsrOptionRrep, ns3::dsr::DsrOptionRreq, ns3::dsr::DsrOptionPadn, and ns3::dsr::DsrOptionPad1.
Referenced by GetTypeId().
Here is the caller graph for this function:
|
static |
Get the type identificator.
This method returns the TypeId associated to ns3::dsr::DsrOptions.
Attributes defined for this type:
TraceSources defined for this type:
Reimplemented from ns3::Object.
Reimplemented in ns3::dsr::DsrOptionAck, ns3::dsr::DsrOptionAckReq, ns3::dsr::DsrOptionRerr, ns3::dsr::DsrOptionSR, ns3::dsr::DsrOptionRrep, ns3::dsr::DsrOptionRreq, ns3::dsr::DsrOptionPadn, and ns3::dsr::DsrOptionPad1.
Definition at line 70 of file dsr-options.cc.
References GetOptionNumber(), m_rxPacketTrace, ns3::MakeTraceSourceAccessor(), and ns3::TypeId::SetParent().
Here is the call graph for this function:| bool ns3::dsr::DsrOptions::IfDuplicates | ( | std::vector< Ipv4Address > & | vec, |
| std::vector< Ipv4Address > & | vec2 | ||
| ) |
Definition at line 240 of file dsr-options.cc.
References NS_LOG_DEBUG, NS_LOG_FUNCTION, and PrintVector().
Referenced by ns3::dsr::DsrOptionRreq::Process().
Here is the call graph for this function:
Here is the caller graph for this function:| void ns3::dsr::DsrOptions::PrintVector | ( | std::vector< Ipv4Address > & | vec | ) |
Definition at line 220 of file dsr-options.cc.
References NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Referenced by IfDuplicates(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrOptionRrep::Process(), ns3::dsr::DsrOptionSR::Process(), and RemoveDuplicates().
Here is the caller graph for this function:
|
pure virtual |
Process method.
Called from DsrRouting::Receive.
| packet | the packet |
| dsrP | the clean packet with payload |
| ipv4Header | the IPv4 header of packet received |
| protocol | the protocol number of the up layer |
| isPromisc | if the packet must be dropped |
Implemented in ns3::dsr::DsrOptionAck, ns3::dsr::DsrOptionAckReq, ns3::dsr::DsrOptionRerr, ns3::dsr::DsrOptionSR, ns3::dsr::DsrOptionRrep, ns3::dsr::DsrOptionRreq, ns3::dsr::DsrOptionPadn, and ns3::dsr::DsrOptionPad1.
| void ns3::dsr::DsrOptions::RemoveDuplicates | ( | std::vector< Ipv4Address > & | vec | ) |
Definition at line 281 of file dsr-options.cc.
References NS_LOG_FUNCTION, and PrintVector().
Referenced by ns3::dsr::DsrOptionRrep::Process().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ns3::dsr::DsrOptions::ReverseRoutes | ( | std::vector< Ipv4Address > & | vec | ) |
Reverse the routes.
Definition at line 144 of file dsr-options.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::dsr::DsrOptionRreq::Process().
Here is the caller graph for this function:| Ipv4Address ns3::dsr::DsrOptions::ReverseSearchNextHop | ( | Ipv4Address | ipv4Address, |
| std::vector< Ipv4Address > & | vec | ||
| ) |
Definition at line 194 of file dsr-options.cc.
References NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Referenced by ns3::dsr::DsrOptionRreq::Process(), and ns3::dsr::DsrOptionRrep::Process().
Here is the caller graph for this function:| void ns3::dsr::DsrOptions::ScheduleReply | ( | Ptr< Packet > & | packet, |
| std::vector< Ipv4Address > & | nodeList, | ||
| Ipv4Address & | source, | ||
| Ipv4Address & | destination | ||
| ) |
| Ipv4Address ns3::dsr::DsrOptions::SearchNextHop | ( | Ipv4Address | ipv4Address, |
| std::vector< Ipv4Address > & | vec | ||
| ) |
Definition at line 162 of file dsr-options.cc.
References NS_LOG_DEBUG, and NS_LOG_FUNCTION.
Referenced by ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrOptionRrep::Process(), and ns3::dsr::DsrOptionSR::Process().
Here is the caller graph for this function:Set the node.
| node | the node to set |
Definition at line 94 of file dsr-options.cc.
References m_node, and NS_LOG_FUNCTION.
|
virtual |
Definition at line 134 of file dsr-options.cc.
References m_ipv4Route, NS_LOG_FUNCTION, ns3::Ipv4Route::SetDestination(), ns3::Ipv4Route::SetGateway(), and ns3::Ipv4Route::SetSource().
Referenced by ns3::dsr::DsrOptionRerr::DoSendError(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrOptionRrep::Process(), ns3::dsr::DsrOptionSR::Process(), and ns3::dsr::DsrOptionAckReq::Process().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
The active route timeout value.
Definition at line 222 of file dsr-options.h.
Referenced by ns3::dsr::DsrOptionRreq::Process(), and ns3::dsr::DsrOptionRrep::Process().
|
protected |
The broadcast IP address.
Definition at line 194 of file dsr-options.h.
|
protected |
Drop trace callback.
Definition at line 190 of file dsr-options.h.
Referenced by ns3::dsr::DsrOptionRerr::DoSendError(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrOptionRrep::Process(), and ns3::dsr::DsrOptionSR::Process().
|
protected |
The vector of final Ipv4 address.
Definition at line 218 of file dsr-options.h.
Referenced by ns3::dsr::DsrOptionRreq::Process().
The ipv4.
Definition at line 210 of file dsr-options.h.
|
protected |
The vector of Ipv4 address.
Definition at line 214 of file dsr-options.h.
The ipv4 route.
Definition at line 206 of file dsr-options.h.
Referenced by ns3::dsr::DsrOptionRerr::DoSendError(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrOptionRrep::Process(), ns3::dsr::DsrOptionSR::Process(), and SetRoute().
Definition at line 229 of file dsr-options.h.
|
protected |
The route cache table.
Definition at line 202 of file dsr-options.h.
|
protected |
The route request table.
Definition at line 198 of file dsr-options.h.
|
protected |
Definition at line 226 of file dsr-options.h.
Referenced by GetTypeId().