This class encapsulates all data structures needed for maintaining internal state of an OLSR node. More...
#include "olsr-state.h"
Public Member Functions | |
OlsrState () | |
void | EraseAssociation (const Association &tuple) |
Erases an association. More... | |
void | EraseAssociationTuple (const AssociationTuple &tuple) |
Erases a known association tuple. More... | |
void | EraseDuplicateTuple (const DuplicateTuple &tuple) |
Erases a duplicate tuple. More... | |
void | EraseIfaceAssocTuple (const IfaceAssocTuple &tuple) |
Erases a interface association tuple. More... | |
void | EraseLinkTuple (const LinkTuple &tuple) |
Erases a link tuple. More... | |
void | EraseMprSelectorTuple (const MprSelectorTuple &tuple) |
Erases a MPR selector tuple. More... | |
void | EraseMprSelectorTuples (const Ipv4Address &mainAddr) |
Erases all MPR selector tuples belonging to the same address. More... | |
void | EraseNeighborTuple (const Ipv4Address &mainAddr) |
Erases a neighbor tuple. More... | |
void | EraseNeighborTuple (const NeighborTuple &neighborTuple) |
Erases a neighbor tuple. More... | |
void | EraseOlderTopologyTuples (const Ipv4Address &lastAddr, uint16_t ansn) |
Erases a topology tuple. More... | |
void | EraseTopologyTuple (const TopologyTuple &tuple) |
Erases a topology tuple. More... | |
void | EraseTwoHopNeighborTuple (const TwoHopNeighborTuple &tuple) |
Erases a 2-hop neighbor tuple. More... | |
void | EraseTwoHopNeighborTuples (const Ipv4Address &neighbor) |
Erases the 2-hop neighbor tuples with the same 1-hop neighbor. More... | |
void | EraseTwoHopNeighborTuples (const Ipv4Address &neighbor, const Ipv4Address &twoHopNeighbor) |
Erases the 2-hop neighbor tuples with matching predicates. More... | |
AssociationTuple * | FindAssociationTuple (const Ipv4Address &gatewayAddr, const Ipv4Address &networkAddr, const Ipv4Mask &netmask) |
Finds an association tuple. More... | |
DuplicateTuple * | FindDuplicateTuple (const Ipv4Address &address, uint16_t sequenceNumber) |
Finds a duplicate tuple. More... | |
IfaceAssocTuple * | FindIfaceAssocTuple (const Ipv4Address &ifaceAddr) |
Finds a interface association tuple. More... | |
const IfaceAssocTuple * | FindIfaceAssocTuple (const Ipv4Address &ifaceAddr) const |
Finds a interface association tuple. More... | |
LinkTuple * | FindLinkTuple (const Ipv4Address &ifaceAddr) |
Finds a link tuple. More... | |
bool | FindMprAddress (const Ipv4Address &address) |
Checks if there's an MPR with a specific address. More... | |
MprSelectorTuple * | FindMprSelectorTuple (const Ipv4Address &mainAddr) |
Finds a MPR selector tuple. More... | |
std::vector< Ipv4Address > | FindNeighborInterfaces (const Ipv4Address &neighborMainAddr) const |
Returns a vector of all interfaces of a given neighbor, with the exception of the "main" one. More... | |
NeighborTuple * | FindNeighborTuple (const Ipv4Address &mainAddr) |
Finds a neighbor tuple. More... | |
NeighborTuple * | FindNeighborTuple (const Ipv4Address &mainAddr, uint8_t willingness) |
Finds a neighbor tuple. More... | |
TopologyTuple * | FindNewerTopologyTuple (const Ipv4Address &lastAddr, uint16_t ansn) |
Finds a topology tuple. More... | |
LinkTuple * | FindSymLinkTuple (const Ipv4Address &ifaceAddr, Time time) |
Finds a symmetrical link tuple. More... | |
const NeighborTuple * | FindSymNeighborTuple (const Ipv4Address &mainAddr) const |
Finds a symmetrical neighbor tuple. More... | |
TopologyTuple * | FindTopologyTuple (const Ipv4Address &destAddr, const Ipv4Address &lastAddr) |
Finds a topology tuple. More... | |
TwoHopNeighborTuple * | FindTwoHopNeighborTuple (const Ipv4Address &neighbor, const Ipv4Address &twoHopNeighbor) |
Finds a 2-hop neighbor tuple. More... | |
const Associations & | GetAssociations () const |
Gets the association set the node has. More... | |
const AssociationSet & | GetAssociationSet () const |
Gets the association set known to the node. More... | |
const IfaceAssocSet & | GetIfaceAssocSet () const |
Gets the interface association set. More... | |
IfaceAssocSet & | GetIfaceAssocSetMutable () |
Gets a mutable reference to the interface association set. More... | |
const LinkSet & | GetLinks () const |
Gets the Link set. More... | |
const MprSelectorSet & | GetMprSelectors () const |
Gets the MPR selectors. More... | |
MprSet | GetMprSet () const |
Gets the MPR set. More... | |
NeighborSet & | GetNeighbors () |
Gets the neighbor set. More... | |
const NeighborSet & | GetNeighbors () const |
Gets the neighbor set. More... | |
const TopologySet & | GetTopologySet () const |
Gets the topology set. More... | |
TwoHopNeighborSet & | GetTwoHopNeighbors () |
Gets the 2-hop neighbor set. More... | |
const TwoHopNeighborSet & | GetTwoHopNeighbors () const |
Gets the 2-hop neighbor set. More... | |
void | InsertAssociation (const Association &tuple) |
Inserts an association tuple. More... | |
void | InsertAssociationTuple (const AssociationTuple &tuple) |
Inserts a known association tuple. More... | |
void | InsertDuplicateTuple (const DuplicateTuple &tuple) |
Inserts a duplicate tuple. More... | |
void | InsertIfaceAssocTuple (const IfaceAssocTuple &tuple) |
Inserts a interface association tuple. More... | |
LinkTuple & | InsertLinkTuple (const LinkTuple &tuple) |
Inserts a link tuple. More... | |
void | InsertMprSelectorTuple (const MprSelectorTuple &tuple) |
Inserts a MPR selector tuple. More... | |
void | InsertNeighborTuple (const NeighborTuple &tuple) |
Inserts a neighbor tuple. More... | |
void | InsertTopologyTuple (const TopologyTuple &tuple) |
Inserts a topology tuple. More... | |
void | InsertTwoHopNeighborTuple (const TwoHopNeighborTuple &tuple) |
Inserts a 2-hop neighbor tuple. More... | |
std::string | PrintMprSelectorSet () const |
Prints the MPR selector sets. More... | |
void | SetMprSet (MprSet mprSet) |
Sets the MPR set to the one specified. More... | |
Protected Attributes | |
Associations | m_associations |
The node's local Host Network Associations that will be advertised using HNA messages. More... | |
AssociationSet | m_associationSet |
Association Set (RFC 3626, section12.2). More... | |
DuplicateSet | m_duplicateSet |
Duplicate Set (RFC 3626, section 3.4). More... | |
IfaceAssocSet | m_ifaceAssocSet |
Interface Association Set (RFC 3626, section 4.1). More... | |
LinkSet | m_linkSet |
Link Set (RFC 3626, section 4.2.1). More... | |
MprSelectorSet | m_mprSelectorSet |
MPR Selector Set (RFC 3626, section 4.3.4). More... | |
MprSet | m_mprSet |
MPR Set (RFC 3626, section 4.3.3). More... | |
NeighborSet | m_neighborSet |
Neighbor Set (RFC 3626, section 4.3.1). More... | |
TopologySet | m_topologySet |
Topology Set (RFC 3626, section 4.4). More... | |
TwoHopNeighborSet | m_twoHopNeighborSet |
2-hop Neighbor Set (RFC 3626, section 4.3.2). More... | |
This class encapsulates all data structures needed for maintaining internal state of an OLSR node.
Definition at line 34 of file olsr-state.h.
|
inline |
Definition at line 51 of file olsr-state.h.
void ns3::olsr::OlsrState::EraseAssociation | ( | const Association & | tuple | ) |
Erases an association.
tuple | The tuple to erase. |
Definition at line 555 of file olsr-state.cc.
References m_associations.
Referenced by ns3::olsr::RoutingProtocol::RemoveHostNetworkAssociation().
void ns3::olsr::OlsrState::EraseAssociationTuple | ( | const AssociationTuple & | tuple | ) |
Erases a known association tuple.
tuple | The tuple to erase. |
Definition at line 535 of file olsr-state.cc.
References m_associationSet.
Referenced by ns3::olsr::RoutingProtocol::RemoveAssociationTuple().
void ns3::olsr::OlsrState::EraseDuplicateTuple | ( | const DuplicateTuple & | tuple | ) |
Erases a duplicate tuple.
tuple | The tuple to erase. |
Definition at line 308 of file olsr-state.cc.
References m_duplicateSet.
Referenced by ns3::olsr::RoutingProtocol::RemoveDuplicateTuple().
void ns3::olsr::OlsrState::EraseIfaceAssocTuple | ( | const IfaceAssocTuple & | tuple | ) |
Erases a interface association tuple.
tuple | The tuple to erase. |
Definition at line 484 of file olsr-state.cc.
References m_ifaceAssocSet.
Referenced by ns3::olsr::RoutingProtocol::RemoveIfaceAssocTuple().
void ns3::olsr::OlsrState::EraseLinkTuple | ( | const LinkTuple & | tuple | ) |
Erases a link tuple.
tuple | The tuple to erase. |
Definition at line 365 of file olsr-state.cc.
References m_linkSet.
Referenced by ns3::olsr::RoutingProtocol::RemoveLinkTuple().
void ns3::olsr::OlsrState::EraseMprSelectorTuple | ( | const MprSelectorTuple & | tuple | ) |
Erases a MPR selector tuple.
tuple | The MPR selector tuple. |
Definition at line 52 of file olsr-state.cc.
References m_mprSelectorSet.
Referenced by ns3::olsr::RoutingProtocol::RemoveMprSelectorTuple().
void ns3::olsr::OlsrState::EraseMprSelectorTuples | ( | const Ipv4Address & | mainAddr | ) |
Erases all MPR selector tuples belonging to the same address.
mainAddr | The MPR selector main address. |
Definition at line 66 of file olsr-state.cc.
References m_mprSelectorSet.
Referenced by ns3::olsr::RoutingProtocol::NeighborLoss().
void ns3::olsr::OlsrState::EraseNeighborTuple | ( | const Ipv4Address & | mainAddr | ) |
Erases a neighbor tuple.
mainAddr | The neighbor tuple main address. |
Definition at line 168 of file olsr-state.cc.
References m_neighborSet.
void ns3::olsr::OlsrState::EraseNeighborTuple | ( | const NeighborTuple & | neighborTuple | ) |
Erases a neighbor tuple.
neighborTuple | The neighbor tuple. |
Definition at line 154 of file olsr-state.cc.
References m_neighborSet.
Referenced by ns3::olsr::RoutingProtocol::RemoveLinkTuple(), and ns3::olsr::RoutingProtocol::RemoveNeighborTuple().
void ns3::olsr::OlsrState::EraseOlderTopologyTuples | ( | const Ipv4Address & | lastAddr, |
uint16_t | ansn | ||
) |
Erases a topology tuple.
lastAddr | The address of the node previous to the destination. |
ansn | The Advertised Neighbor Sequence Number. |
Definition at line 431 of file olsr-state.cc.
References m_topologySet.
Referenced by ns3::olsr::RoutingProtocol::ProcessTc().
void ns3::olsr::OlsrState::EraseTopologyTuple | ( | const TopologyTuple & | tuple | ) |
Erases a topology tuple.
tuple | The tuple to erase. |
Definition at line 417 of file olsr-state.cc.
References m_topologySet.
Referenced by ns3::olsr::RoutingProtocol::RemoveTopologyTuple().
void ns3::olsr::OlsrState::EraseTwoHopNeighborTuple | ( | const TwoHopNeighborTuple & | tuple | ) |
Erases a 2-hop neighbor tuple.
tuple | The 2-hop neighbor tuple. |
Definition at line 216 of file olsr-state.cc.
References m_twoHopNeighborSet.
Referenced by ns3::olsr::RoutingProtocol::RemoveTwoHopNeighborTuple().
void ns3::olsr::OlsrState::EraseTwoHopNeighborTuples | ( | const Ipv4Address & | neighbor | ) |
Erases the 2-hop neighbor tuples with the same 1-hop neighbor.
neighbor | The neighbor address. |
Definition at line 249 of file olsr-state.cc.
References m_twoHopNeighborSet.
Referenced by ns3::olsr::RoutingProtocol::NeighborLoss(), and ns3::olsr::RoutingProtocol::PopulateTwoHopNeighborSet().
void ns3::olsr::OlsrState::EraseTwoHopNeighborTuples | ( | const Ipv4Address & | neighbor, |
const Ipv4Address & | twoHopNeighbor | ||
) |
Erases the 2-hop neighbor tuples with matching predicates.
neighbor | The neighbor address. |
twoHopNeighbor | The 2-hop neighbor main address. |
Definition at line 230 of file olsr-state.cc.
References m_twoHopNeighborSet.
AssociationTuple * ns3::olsr::OlsrState::FindAssociationTuple | ( | const Ipv4Address & | gatewayAddr, |
const Ipv4Address & | networkAddr, | ||
const Ipv4Mask & | netmask | ||
) |
Finds an association tuple.
gatewayAddr | The gateway address. |
networkAddr | The network address. |
netmask | The network mask. |
Definition at line 521 of file olsr-state.cc.
References m_associationSet.
Referenced by ns3::olsr::RoutingProtocol::AssociationTupleTimerExpire(), and ns3::olsr::RoutingProtocol::ProcessHna().
DuplicateTuple * ns3::olsr::OlsrState::FindDuplicateTuple | ( | const Ipv4Address & | address, |
uint16_t | sequenceNumber | ||
) |
Finds a duplicate tuple.
address | The duplicate tuple address. |
sequenceNumber | The duplicate tuple sequence number. |
Definition at line 294 of file olsr-state.cc.
References m_duplicateSet.
Referenced by ns3::olsr::RoutingProtocol::DupTupleTimerExpire(), and ns3::olsr::RoutingProtocol::RecvOlsr().
IfaceAssocTuple * ns3::olsr::OlsrState::FindIfaceAssocTuple | ( | const Ipv4Address & | ifaceAddr | ) |
Finds a interface association tuple.
ifaceAddr | The interface address. |
Definition at line 456 of file olsr-state.cc.
References m_ifaceAssocSet.
Referenced by ns3::olsr::RoutingProtocol::GetMainAddress(), and ns3::olsr::RoutingProtocol::IfaceAssocTupleTimerExpire().
const IfaceAssocTuple * ns3::olsr::OlsrState::FindIfaceAssocTuple | ( | const Ipv4Address & | ifaceAddr | ) | const |
Finds a interface association tuple.
ifaceAddr | The interface address. |
Definition at line 470 of file olsr-state.cc.
References m_ifaceAssocSet.
LinkTuple * ns3::olsr::OlsrState::FindLinkTuple | ( | const Ipv4Address & | ifaceAddr | ) |
Finds a link tuple.
ifaceAddr | The interface address of the link. |
Definition at line 330 of file olsr-state.cc.
References m_linkSet.
Referenced by ns3::olsr::RoutingProtocol::LinkSensing(), and ns3::olsr::RoutingProtocol::LinkTupleTimerExpire().
bool ns3::olsr::OlsrState::FindMprAddress | ( | const Ipv4Address & | address | ) |
Checks if there's an MPR with a specific address.
address | The address to test. |
Definition at line 274 of file olsr-state.cc.
References m_mprSet.
Referenced by ns3::olsr::RoutingProtocol::SendHello().
MprSelectorTuple * ns3::olsr::OlsrState::FindMprSelectorTuple | ( | const Ipv4Address & | mainAddr | ) |
Finds a MPR selector tuple.
mainAddr | The MPR selector main address. |
Definition at line 38 of file olsr-state.cc.
References m_mprSelectorSet.
Referenced by ns3::olsr::RoutingProtocol::ForwardDefault(), ns3::olsr::RoutingProtocol::MprSelTupleTimerExpire(), and ns3::olsr::RoutingProtocol::PopulateMprSelectorSet().
std::vector< Ipv4Address > ns3::olsr::OlsrState::FindNeighborInterfaces | ( | const Ipv4Address & | neighborMainAddr | ) | const |
Returns a vector of all interfaces of a given neighbor, with the exception of the "main" one.
neighborMainAddr | The neighbor main address |
Definition at line 504 of file olsr-state.cc.
References m_ifaceAssocSet.
Referenced by ns3::olsr::RoutingProtocol::SendHello().
NeighborTuple * ns3::olsr::OlsrState::FindNeighborTuple | ( | const Ipv4Address & | mainAddr | ) |
Finds a neighbor tuple.
mainAddr | The neighbor tuple main address. |
Definition at line 112 of file olsr-state.cc.
References m_neighborSet.
Referenced by ns3::olsr::RoutingProtocol::Degree(), ns3::olsr::RoutingProtocol::LinkTupleUpdated(), and ns3::olsr::RoutingProtocol::PopulateNeighborSet().
NeighborTuple * ns3::olsr::OlsrState::FindNeighborTuple | ( | const Ipv4Address & | mainAddr, |
uint8_t | willingness | ||
) |
Finds a neighbor tuple.
mainAddr | The neighbor tuple main address. |
willingness | The neighbor willingness. |
Definition at line 140 of file olsr-state.cc.
References m_neighborSet.
TopologyTuple * ns3::olsr::OlsrState::FindNewerTopologyTuple | ( | const Ipv4Address & | lastAddr, |
uint16_t | ansn | ||
) |
Finds a topology tuple.
lastAddr | The address of the node previous to the destination. |
ansn | The Advertised Neighbor Sequence Number. |
Definition at line 403 of file olsr-state.cc.
References m_topologySet.
Referenced by ns3::olsr::RoutingProtocol::ProcessTc().
LinkTuple * ns3::olsr::OlsrState::FindSymLinkTuple | ( | const Ipv4Address & | ifaceAddr, |
Time | time | ||
) |
Finds a symmetrical link tuple.
ifaceAddr | The interface address of the link. |
time | The time at which the link should be considered symmetrical. |
Definition at line 344 of file olsr-state.cc.
References m_linkSet.
Referenced by ns3::olsr::RoutingProtocol::ForwardDefault(), ns3::olsr::RoutingProtocol::ProcessHna(), ns3::olsr::RoutingProtocol::ProcessMid(), and ns3::olsr::RoutingProtocol::ProcessTc().
const NeighborTuple * ns3::olsr::OlsrState::FindSymNeighborTuple | ( | const Ipv4Address & | mainAddr | ) | const |
Finds a symmetrical neighbor tuple.
mainAddr | The neighbor tuple main address. |
Definition at line 126 of file olsr-state.cc.
References m_neighborSet, and ns3::olsr::NeighborTuple::STATUS_SYM.
Referenced by ns3::olsr::RoutingProtocol::RoutingTableComputation().
TopologyTuple * ns3::olsr::OlsrState::FindTopologyTuple | ( | const Ipv4Address & | destAddr, |
const Ipv4Address & | lastAddr | ||
) |
Finds a topology tuple.
destAddr | The destination address. |
lastAddr | The address of the node previous to the destination. |
Definition at line 388 of file olsr-state.cc.
References m_topologySet.
Referenced by ns3::olsr::RoutingProtocol::ProcessTc(), and ns3::olsr::RoutingProtocol::TopologyTupleTimerExpire().
TwoHopNeighborTuple * ns3::olsr::OlsrState::FindTwoHopNeighborTuple | ( | const Ipv4Address & | neighbor, |
const Ipv4Address & | twoHopNeighbor | ||
) |
Finds a 2-hop neighbor tuple.
neighbor | The neighbor main address. |
twoHopNeighbor | The 2-hop neighbor main address. |
Definition at line 200 of file olsr-state.cc.
References m_twoHopNeighborSet.
Referenced by ns3::olsr::RoutingProtocol::Nb2hopTupleTimerExpire(), and ns3::olsr::RoutingProtocol::PopulateTwoHopNeighborSet().
|
inline |
Gets the association set the node has.
Definition at line 385 of file olsr-state.h.
References m_associations.
Referenced by ns3::olsr::RoutingProtocol::AddHostNetworkAssociation(), ns3::olsr::RoutingProtocol::HnaTimerExpire(), ns3::olsr::RoutingProtocol::RoutingTableComputation(), ns3::olsr::RoutingProtocol::SendHna(), and ns3::olsr::RoutingProtocol::SetRoutingTableAssociation().
|
inline |
Gets the association set known to the node.
Definition at line 376 of file olsr-state.h.
References m_associationSet.
Referenced by ns3::olsr::RoutingProtocol::RoutingTableComputation().
|
inline |
Gets the interface association set.
Definition at line 335 of file olsr-state.h.
References m_ifaceAssocSet.
Referenced by ns3::olsr::RoutingProtocol::RoutingTableComputation().
|
inline |
Gets a mutable reference to the interface association set.
Definition at line 343 of file olsr-state.h.
References m_ifaceAssocSet.
Referenced by ns3::olsr::RoutingProtocol::ProcessMid().
|
inline |
Gets the Link set.
Definition at line 256 of file olsr-state.h.
References m_linkSet.
Referenced by ns3::olsr::RoutingProtocol::LinkTupleUpdated(), ns3::olsr::RoutingProtocol::PopulateTwoHopNeighborSet(), ns3::olsr::RoutingProtocol::ProcessHello(), ns3::olsr::RoutingProtocol::RoutingTableComputation(), and ns3::olsr::RoutingProtocol::SendHello().
|
inline |
Gets the MPR selectors.
Definition at line 61 of file olsr-state.h.
References m_mprSelectorSet.
Referenced by ns3::olsr::RoutingProtocol::GetMprSelectors(), ns3::olsr::RoutingProtocol::SendTc(), and ns3::olsr::RoutingProtocol::TcTimerExpire().
MprSet ns3::olsr::OlsrState::GetMprSet | ( | void | ) | const |
Gets the MPR set.
Definition at line 286 of file olsr-state.cc.
References m_mprSet.
Referenced by ns3::olsr::RoutingProtocol::GetMprSet().
|
inline |
Gets the neighbor set.
Definition at line 111 of file olsr-state.h.
References m_neighborSet.
|
inline |
Gets the neighbor set.
Definition at line 103 of file olsr-state.h.
References m_neighborSet.
Referenced by ns3::olsr::RoutingProtocol::Dump(), ns3::olsr::RoutingProtocol::GetNeighbors(), ns3::olsr::RoutingProtocol::MprComputation(), ns3::olsr::RoutingProtocol::ProcessHello(), ns3::olsr::RoutingProtocol::ProcessMid(), ns3::olsr::RoutingProtocol::RoutingTableComputation(), and ns3::olsr::RoutingProtocol::SendHello().
|
inline |
Gets the topology set.
Definition at line 291 of file olsr-state.h.
References m_topologySet.
Referenced by ns3::olsr::RoutingProtocol::GetTopologySet(), ns3::olsr::RoutingProtocol::ProcessTc(), and ns3::olsr::RoutingProtocol::RoutingTableComputation().
|
inline |
Gets the 2-hop neighbor set.
Definition at line 170 of file olsr-state.h.
References m_twoHopNeighborSet.
|
inline |
Gets the 2-hop neighbor set.
Definition at line 162 of file olsr-state.h.
References m_twoHopNeighborSet.
Referenced by ns3::olsr::RoutingProtocol::Degree(), ns3::olsr::RoutingProtocol::Dump(), ns3::olsr::RoutingProtocol::GetTwoHopNeighbors(), ns3::olsr::RoutingProtocol::MprComputation(), ns3::olsr::RoutingProtocol::ProcessHello(), ns3::olsr::RoutingProtocol::ProcessMid(), and ns3::olsr::RoutingProtocol::RoutingTableComputation().
void ns3::olsr::OlsrState::InsertAssociation | ( | const Association & | tuple | ) |
Inserts an association tuple.
tuple | The tuple to insert. |
Definition at line 569 of file olsr-state.cc.
References m_associations.
Referenced by ns3::olsr::RoutingProtocol::AddHostNetworkAssociation().
void ns3::olsr::OlsrState::InsertAssociationTuple | ( | const AssociationTuple & | tuple | ) |
Inserts a known association tuple.
tuple | The tuple to insert. |
Definition at line 549 of file olsr-state.cc.
References m_associationSet.
Referenced by ns3::olsr::RoutingProtocol::AddAssociationTuple().
void ns3::olsr::OlsrState::InsertDuplicateTuple | ( | const DuplicateTuple & | tuple | ) |
Inserts a duplicate tuple.
tuple | The tuple to insert. |
Definition at line 322 of file olsr-state.cc.
References m_duplicateSet.
Referenced by ns3::olsr::RoutingProtocol::AddDuplicateTuple().
void ns3::olsr::OlsrState::InsertIfaceAssocTuple | ( | const IfaceAssocTuple & | tuple | ) |
Inserts a interface association tuple.
tuple | The tuple to insert. |
Definition at line 498 of file olsr-state.cc.
References m_ifaceAssocSet.
Referenced by ns3::olsr::RoutingProtocol::AddIfaceAssocTuple().
Inserts a link tuple.
tuple | The tuple to insert. |
Definition at line 379 of file olsr-state.cc.
References m_linkSet.
Referenced by ns3::olsr::RoutingProtocol::LinkSensing().
void ns3::olsr::OlsrState::InsertMprSelectorTuple | ( | const MprSelectorTuple & | tuple | ) |
Inserts a MPR selector tuple.
tuple | The MPR selector tuple. |
Definition at line 83 of file olsr-state.cc.
References m_mprSelectorSet.
Referenced by ns3::olsr::RoutingProtocol::AddMprSelectorTuple().
void ns3::olsr::OlsrState::InsertNeighborTuple | ( | const NeighborTuple & | tuple | ) |
Inserts a neighbor tuple.
tuple | The neighbor tuple. |
Definition at line 182 of file olsr-state.cc.
References m_neighborSet, and ns3::olsr::NeighborTuple::neighborMainAddr.
Referenced by ns3::olsr::RoutingProtocol::AddNeighborTuple().
void ns3::olsr::OlsrState::InsertTopologyTuple | ( | const TopologyTuple & | tuple | ) |
Inserts a topology tuple.
tuple | The tuple to insert. |
Definition at line 448 of file olsr-state.cc.
References m_topologySet.
Referenced by ns3::olsr::RoutingProtocol::AddTopologyTuple().
void ns3::olsr::OlsrState::InsertTwoHopNeighborTuple | ( | const TwoHopNeighborTuple & | tuple | ) |
Inserts a 2-hop neighbor tuple.
tuple | The 2-hop neighbor tuple. |
Definition at line 266 of file olsr-state.cc.
References m_twoHopNeighborSet.
Referenced by ns3::olsr::RoutingProtocol::AddTwoHopNeighborTuple().
std::string ns3::olsr::OlsrState::PrintMprSelectorSet | ( | ) | const |
Prints the MPR selector sets.
Definition at line 89 of file olsr-state.cc.
References m_mprSelectorSet.
Referenced by ns3::olsr::RoutingProtocol::PopulateMprSelectorSet().
void ns3::olsr::OlsrState::SetMprSet | ( | MprSet | mprSet | ) |
Sets the MPR set to the one specified.
mprSet | The new MPR set. |
Definition at line 281 of file olsr-state.cc.
References m_mprSet.
Referenced by ns3::olsr::RoutingProtocol::MprComputation().
|
protected |
The node's local Host Network Associations that will be advertised using HNA messages.
Definition at line 48 of file olsr-state.h.
Referenced by EraseAssociation(), GetAssociations(), and InsertAssociation().
|
protected |
Association Set (RFC 3626, section12.2).
Associations obtained from HNA messages generated by other nodes.
Definition at line 47 of file olsr-state.h.
Referenced by EraseAssociationTuple(), FindAssociationTuple(), GetAssociationSet(), and InsertAssociationTuple().
|
protected |
Duplicate Set (RFC 3626, section 3.4).
Definition at line 45 of file olsr-state.h.
Referenced by EraseDuplicateTuple(), FindDuplicateTuple(), and InsertDuplicateTuple().
|
protected |
Interface Association Set (RFC 3626, section 4.1).
Definition at line 46 of file olsr-state.h.
Referenced by EraseIfaceAssocTuple(), FindIfaceAssocTuple(), FindNeighborInterfaces(), GetIfaceAssocSet(), GetIfaceAssocSetMutable(), and InsertIfaceAssocTuple().
|
protected |
Link Set (RFC 3626, section 4.2.1).
Definition at line 39 of file olsr-state.h.
Referenced by EraseLinkTuple(), FindLinkTuple(), FindSymLinkTuple(), GetLinks(), and InsertLinkTuple().
|
protected |
MPR Selector Set (RFC 3626, section 4.3.4).
Definition at line 44 of file olsr-state.h.
Referenced by EraseMprSelectorTuple(), EraseMprSelectorTuples(), FindMprSelectorTuple(), GetMprSelectors(), InsertMprSelectorTuple(), and PrintMprSelectorSet().
|
protected |
MPR Set (RFC 3626, section 4.3.3).
Definition at line 43 of file olsr-state.h.
Referenced by FindMprAddress(), GetMprSet(), and SetMprSet().
|
protected |
Neighbor Set (RFC 3626, section 4.3.1).
Definition at line 40 of file olsr-state.h.
Referenced by EraseNeighborTuple(), FindNeighborTuple(), FindSymNeighborTuple(), GetNeighbors(), and InsertNeighborTuple().
|
protected |
Topology Set (RFC 3626, section 4.4).
Definition at line 42 of file olsr-state.h.
Referenced by EraseOlderTopologyTuples(), EraseTopologyTuple(), FindNewerTopologyTuple(), FindTopologyTuple(), GetTopologySet(), and InsertTopologyTuple().
|
protected |
2-hop Neighbor Set (RFC 3626, section 4.3.2).
Definition at line 41 of file olsr-state.h.
Referenced by EraseTwoHopNeighborTuple(), EraseTwoHopNeighborTuples(), FindTwoHopNeighborTuple(), GetTwoHopNeighbors(), and InsertTwoHopNeighborTuple().