A Discrete-Event Network Simulator
API
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)
 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...
 

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

Constructor & Destructor Documentation

◆ Link()

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

Constructor.

Parameters
ip1first IP address
ip2second IP address

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

References m_high, and m_low.

Member Function Documentation

◆ operator<()

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

less than comparison operator

Parameters
Llink to compare
Returns
true if less than

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

References m_high, and m_low.

◆ Print()

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().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_high

Ipv4Address ns3::dsr::Link::m_high

high IP address

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

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

◆ m_low

Ipv4Address ns3::dsr::Link::m_low

low IP address

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

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


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