The request entry for intermediate nodes to check if they have received this request or not This is used to control the duplication request from being processed. More...
#include "dsr-rreq-table.h"
Public Member Functions | |
DsrReceivedRreqEntry (Ipv4Address d=Ipv4Address(), uint16_t i=0) | |
Construct a DsrReceivedRreqEntry with the given parameters. | |
Ipv4Address | GetDestination () const |
Return IPv4 address of the destination. | |
Time | GetExpireTime () const |
Return the remaining time before the RREQ entry expires. | |
uint16_t | GetIdentification () const |
Return identification. | |
Ipv4Address | GetSource () const |
Return IPv4 address of the source. | |
bool | operator== (const DsrReceivedRreqEntry &o) const |
Compare send buffer entries (destination address and identification) | |
void | SetDestination (Ipv4Address d) |
Set IPv4 address of the destination. | |
void | SetExpireTime (Time exp) |
Set expire time for the RREQ entry. | |
void | SetIdentification (uint16_t i) |
Set identification. | |
void | SetSource (Ipv4Address s) |
Set IPv4 address of the source. | |
Private Attributes | |
Ipv4Address | m_destination |
IPv4 address of the destination. | |
Time | m_expire |
Route request expire time. | |
uint16_t | m_identification |
Route request identification. | |
Ipv4Address | m_source |
IPv4 address of the source. | |
The request entry for intermediate nodes to check if they have received this request or not This is used to control the duplication request from being processed.
Definition at line 80 of file dsr-rreq-table.h.
|
inline |
Construct a DsrReceivedRreqEntry with the given parameters.
d | IPv4 address of the destination |
i | identification |
Definition at line 89 of file dsr-rreq-table.h.
|
inline |
Return IPv4 address of the destination.
Definition at line 110 of file dsr-rreq-table.h.
References m_destination.
|
inline |
Return the remaining time before the RREQ entry expires.
Note that we return the remaining time but the stored value is the absolute time.
Definition at line 184 of file dsr-rreq-table.h.
References m_expire, and ns3::Simulator::Now().
|
inline |
Return identification.
Definition at line 150 of file dsr-rreq-table.h.
References m_identification.
|
inline |
Return IPv4 address of the source.
Definition at line 130 of file dsr-rreq-table.h.
References m_source.
|
inline |
Compare send buffer entries (destination address and identification)
o | another DsrReceivedRreqEntry |
Definition at line 100 of file dsr-rreq-table.h.
References m_destination, and m_identification.
|
inline |
Set IPv4 address of the destination.
d | IPv4 address of the destination |
Definition at line 120 of file dsr-rreq-table.h.
References m_destination.
Referenced by ns3::dsr::DsrRreqTable::FindSourceEntry().
|
inline |
Set expire time for the RREQ entry.
Note that the parameter is duration but the stored value is the absolute time.
exp | duration before expire |
Definition at line 172 of file dsr-rreq-table.h.
References m_expire, and ns3::Simulator::Now().
|
inline |
Set identification.
i | identification |
Definition at line 160 of file dsr-rreq-table.h.
References m_identification.
Referenced by ns3::dsr::DsrRreqTable::FindSourceEntry().
|
inline |
Set IPv4 address of the source.
s | IPv4 address of the source |
Definition at line 140 of file dsr-rreq-table.h.
References m_source.
|
private |
IPv4 address of the destination.
Definition at line 191 of file dsr-rreq-table.h.
Referenced by GetDestination(), operator==(), and SetDestination().
|
private |
Route request expire time.
Definition at line 194 of file dsr-rreq-table.h.
Referenced by GetExpireTime(), and SetExpireTime().
|
private |
Route request identification.
Definition at line 193 of file dsr-rreq-table.h.
Referenced by GetIdentification(), operator==(), and SetIdentification().
|
private |
IPv4 address of the source.
Definition at line 192 of file dsr-rreq-table.h.
Referenced by GetSource(), and SetSource().