A link between a Neighbor and a TwoHopNeighbor.
More...
#include <twohop.hh>
List of all members.
Detailed Description
A link between a Neighbor and a TwoHopNeighbor.
Association class between TwoHopNeighbor and Neighbor. TwoHopNeighbor cannot exist without TwoHopLink. Like Link and Neighbor, there is a co-dependent relationship. Both TwoHopNeighbor and TwoHopLink cannot exist without Neighbor.
TwoHopLinks are uniquely identified by the ID of the two-hop neighbor at the far end, and the Neighbor at the near end. When the last TwoHopLink associated with a TwoHopNeighbor is deleted, the TwoHopNeighbor MUST be deleted, to conform to the relations in the RFC.
Member Function Documentation
- Returns:
- A pointer to the strict two-hop neighbor at the far end of this link.
| double TwoHopLink::far_etx |
( |
| ) |
const [inline] |
- Returns:
- ETX measurement at far end of link.
- Returns:
- A unique identifier for this link in the two-hop neighborhood.
| double TwoHopLink::near_etx |
( |
| ) |
const [inline] |
- Returns:
- ETX measurement at near end of link.
| Neighbor* TwoHopLink::nexthop |
( |
| ) |
const [inline] |
- Returns:
- A pointer to the strict one-hop neighbor at the near end of this link.
| void TwoHopLink::set_destination |
( |
TwoHopNeighbor * |
destination | ) |
[inline] |
Set the cached destination pointer.
- Parameters:
-
Set the ID of the interface where this link was last heard.
- Parameters:
-
| faceid | the ID of the interface. |
| void TwoHopLink::set_far_etx |
( |
const double & |
far_etx | ) |
[inline] |
Set the ETX measurement at far end of link.
- Parameters:
-
| far_etx | far end ETX measurement. |
| void TwoHopLink::set_near_etx |
( |
const double & |
near_etx | ) |
[inline] |
Set the ETX measurement at near end of link.
- Parameters:
-
| near_etx | near end ETX measurement. |
| TimeVal TwoHopLink::time_remaining |
( |
| ) |
const [inline] |
- Returns:
- the amount of time remaining until this two-hop link expires.
| void TwoHopLink::update_timer |
( |
const TimeVal & |
vtime | ) |
|
Update this link's expiry timer.
- Parameters:
-
| vtime | the amount of time from now til when the link expires. |
Member Data Documentation
The ETX as measured at the far end of this link.
Optional.
The ETX as measured at the near end of this link.
Optional.
The documentation for this class was generated from the following files:
- /home/greearb/git/xorp.ct.github/xorp/contrib/olsr/twohop.hh
- /home/greearb/git/xorp.ct.github/xorp/contrib/olsr/twohop.cc