A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::dsr::Link Struct Reference

The route cache structure. More...

#include <dsr-rcache.h>

+ Collaboration diagram for ns3::dsr::Link:

Public Member Functions

 Link (Ipv4Address ip1, Ipv4Address ip2)
 
bool operator< (Link const &L) const
 
void Print () const
 

Public Attributes

Ipv4Address m_high
 
Ipv4Address m_low
 

Detailed Description

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 86 of file dsr-rcache.h.

Constructor & Destructor Documentation

ns3::dsr::Link::Link ( Ipv4Address  ip1,
Ipv4Address  ip2 
)
inline

Definition at line 90 of file dsr-rcache.h.

References m_high, and m_low.

Member Function Documentation

bool ns3::dsr::Link::operator< ( Link const &  L) const
inline

Definition at line 103 of file dsr-rcache.h.

References m_high, and m_low.

void ns3::dsr::Link::Print ( void  ) const

Definition at line 75 of file dsr-rcache.cc.

References m_high, m_low, and NS_LOG_DEBUG.

Referenced by ns3::dsr::RouteCache::AddRoute_Link().

+ Here is the caller graph for this function:

Member Data Documentation

Ipv4Address ns3::dsr::Link::m_high

Definition at line 89 of file dsr-rcache.h.

Referenced by Link(), operator<(), and Print().

Ipv4Address ns3::dsr::Link::m_low

Definition at line 88 of file dsr-rcache.h.

Referenced by Link(), operator<(), and Print().


The documentation for this struct was generated from the following files: