The route cache structure. More...
#include "dsr-rcache.h"
Public Member Functions | |
Link (Ipv4Address ip1, Ipv4Address ip2) | |
Constructor. More... | |
bool | operator< (Link const &L) const |
less than comparison operator More... | |
void | Print () const |
Print function. More... | |
Public Attributes | |
Ipv4Address | m_high |
high IP address More... | |
Ipv4Address | m_low |
low IP address More... | |
The route cache structure.
+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+- | Destination Address |---------| Route Cache Entry | ---------- | IP_VECTOR | dst | exp time | +-+-+-+-+-+-+-+-+-+-+-+- Map +-+-+-+-+-+-+-+-+-+-+- Contains +-+-+-+-+-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+- | Route Cache Entry | ---------- | IP_VECTOR | dst | exp time | +-+-+-+-+-+-+-+-+-+-+- Contains +-+-+-+-+-+-+-+-+-+-+-+-+-+-+- . . . . . . . . +-+-+-+-+-+-+-+-+-+-+- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+- | Route Cache Entry | ---------- | IP_VECTOR | dst | exp time | +-+-+-+-+-+-+-+-+-+-+- Contains +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
DSR Route Cache Entry
Definition at line 88 of file dsr-rcache.h.
|
inline |
Constructor.
ip1 | first IP address |
ip2 | second IP address |
Definition at line 98 of file dsr-rcache.h.
|
inline |
less than comparison operator
L | link to compare |
Definition at line 116 of file dsr-rcache.h.
void ns3::dsr::Link::Print | ( | void | ) | const |
Print function.
Definition at line 76 of file dsr-rcache.cc.
References m_high, m_low, and NS_LOG_DEBUG.
Referenced by ns3::dsr::DsrRouteCache::AddRoute_Link().
Ipv4Address ns3::dsr::Link::m_high |
high IP address
Definition at line 91 of file dsr-rcache.h.
Referenced by Link(), operator<(), and Print().
Ipv4Address ns3::dsr::Link::m_low |
low IP address
Definition at line 90 of file dsr-rcache.h.
Referenced by Link(), operator<(), and Print().