A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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.
 
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
 

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

References m_high, and m_low.

Member Function Documentation

◆ operator<()

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

less than comparison operator

Parameters
Llink to compare
Returns
true if less than

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

References m_high, and m_low.

◆ Print()

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.

Member Data Documentation

◆ m_high

Ipv4Address ns3::dsr::Link::m_high

high IP address

Definition at line 94 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 93 of file dsr-rcache.h.

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


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