The route cache structure. More...
#include "dsr-rcache.h"
Collaboration diagram for ns3::dsr::Link:Public Member Functions | |
| Link (Ipv4Address ip1, Ipv4Address ip2) | |
| Constructor. | |
| bool | operator< (const Link &L) const |
| less than comparison operator | |
| void | Print () const |
| Print function. | |
Public Attributes | |
| Ipv4Address | m_high |
| high IP address | |
| Ipv4Address | m_low |
| low IP address | |
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 80 of file dsr-rcache.h.
|
inline |
Constructor.
| ip1 | first IP address |
| ip2 | second IP address |
Definition at line 91 of file dsr-rcache.h.
Referenced by operator<().
Here is the caller graph for this function:
|
inline |
less than comparison operator
| L | link to compare |
Definition at line 110 of file dsr-rcache.h.
References Link(), m_high, and m_low.
Here is the call graph for this function:| void ns3::dsr::Link::Print | ( | ) | const |
Print function.
Definition at line 73 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 83 of file dsr-rcache.h.
Referenced by Link(), operator<(), and Print().
| Ipv4Address ns3::dsr::Link::m_low |
low IP address
Definition at line 82 of file dsr-rcache.h.
Referenced by Link(), operator<(), and Print().