The route cache structure. More...
#include "dsr-rcache.h"
Public Member Functions | |
Link (Ipv4Address ip1, Ipv4Address ip2) | |
Constructor. More... | |
bool | operator< (const Link &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 91 of file dsr-rcache.h.
|
inline |
Constructor.
ip1 | first IP address |
ip2 | second IP address |
Definition at line 102 of file dsr-rcache.h.
|
inline |
less than comparison operator
L | link to compare |
Definition at line 121 of file dsr-rcache.h.
void ns3::dsr::Link::Print | ( | ) | const |
Print function.
Definition at line 84 of file dsr-rcache.cc.
References m_high, m_low, and NS_LOG_DEBUG.
Ipv4Address ns3::dsr::Link::m_high |
high IP address
Definition at line 94 of file dsr-rcache.h.
Referenced by Link(), operator<(), and Print().
Ipv4Address ns3::dsr::Link::m_low |
low IP address
Definition at line 93 of file dsr-rcache.h.
Referenced by Link(), operator<(), and Print().