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. More... | |
Ipv4Address | GetDestination () const |
Return IPv4 address of the destination. More... | |
Time | GetExpireTime () const |
Return the remaining time before the RREQ entry expires. More... | |
uint16_t | GetIdentification () const |
Return identification. More... | |
Ipv4Address | GetSource () const |
Return IPv4 address of the source. More... | |
bool | operator== (const DsrReceivedRreqEntry &o) const |
Compare send buffer entries (destination address and identification) More... | |
void | SetDestination (Ipv4Address d) |
Set IPv4 address of the destination. More... | |
void | SetExpireTime (Time exp) |
Set expire time for the RREQ entry. More... | |
void | SetIdentification (uint16_t i) |
Set identification. More... | |
void | SetSource (Ipv4Address s) |
Set IPv4 address of the source. More... | |
Private Attributes | |
Ipv4Address | m_destination |
IPv4 address of the destination. More... | |
Time | m_expire |
Route request expire time. More... | |
uint16_t | m_identification |
Route request identification. More... | |
Ipv4Address | m_source |
IPv4 address of the source. More... | |
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 91 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 100 of file dsr-rreq-table.h.
|
inline |
Return IPv4 address of the destination.
Definition at line 121 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 195 of file dsr-rreq-table.h.
References m_expire, and ns3::Simulator::Now().
|
inline |
Return identification.
Definition at line 161 of file dsr-rreq-table.h.
References m_identification.
|
inline |
Return IPv4 address of the source.
Definition at line 141 of file dsr-rreq-table.h.
References m_source.
|
inline |
Compare send buffer entries (destination address and identification)
o | another DsrReceivedRreqEntry |
Definition at line 111 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 131 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 183 of file dsr-rreq-table.h.
References m_expire, and ns3::Simulator::Now().
|
inline |
Set identification.
i | identification |
Definition at line 171 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 151 of file dsr-rreq-table.h.
References m_source.
|
private |
IPv4 address of the destination.
Definition at line 202 of file dsr-rreq-table.h.
Referenced by GetDestination(), operator==(), and SetDestination().
|
private |
Route request expire time.
Definition at line 205 of file dsr-rreq-table.h.
Referenced by GetExpireTime(), and SetExpireTime().
|
private |
Route request identification.
Definition at line 204 of file dsr-rreq-table.h.
Referenced by GetIdentification(), operator==(), and SetIdentification().
|
private |
IPv4 address of the source.
Definition at line 203 of file dsr-rreq-table.h.
Referenced by GetSource(), and SetSource().