43 if (it->mainAddr == mainAddr)
71 if (it->mainAddr == mainAddr)
91 std::ostringstream os;
96 MprSelectorSet::const_iterator next = iter;
117 if (it->neighborMainAddr == mainAddr)
128 for (NeighborSet::const_iterator it =
m_neighborSet.begin ();
145 if (it->neighborMainAddr == mainAddr && it->willingness == willingness)
173 if (it->neighborMainAddr == mainAddr)
206 if (it->neighborMainAddr == neighborMainAddr
207 && it->twoHopNeighborAddr == twoHopNeighborAddr)
236 if (it->neighborMainAddr == neighborMainAddr
237 && it->twoHopNeighborAddr == twoHopNeighborAddr)
254 if (it->neighborMainAddr == neighborMainAddr)
276 MprSet::iterator it =
m_mprSet.find (addr);
299 if (it->address == addr && it->sequenceNumber == sequenceNumber)
332 for (LinkSet::iterator it =
m_linkSet.begin ();
335 if (it->neighborIfaceAddr == ifaceAddr)
346 for (LinkSet::iterator it =
m_linkSet.begin ();
349 if (it->neighborIfaceAddr == ifaceAddr)
351 if (it->symTime > now)
367 for (LinkSet::iterator it =
m_linkSet.begin ();
394 if (it->destAddr == destAddr && it->lastAddr == lastAddr)
408 if (it->lastAddr == lastAddr && it->sequenceNumber > ansn)
436 if (it->lastAddr == lastAddr && it->sequenceNumber < ansn)
461 if (it->ifaceAddr == ifaceAddr)
475 if (it->ifaceAddr == ifaceAddr)
503 std::vector<Ipv4Address>
506 std::vector<Ipv4Address> retval;
510 if (it->mainAddr == neighborMainAddr)
512 retval.push_back (it->ifaceAddr);
526 if (it->gatewayAddr == gatewayAddr and it->networkAddr == networkAddr and it->netmask == netmask)
Simulation virtual time values and global simulation resolution.
AssociationSet m_associationSet
Association Set (RFC 3626, section12.2).
TwoHopNeighborTuple * FindTwoHopNeighborTuple(const Ipv4Address &neighbor, const Ipv4Address &twoHopNeighbor)
Finds a 2-hop neighbor tuple.
void EraseMprSelectorTuples(const Ipv4Address &mainAddr)
Erases all MPR selector tuples belonging to the same address.
void InsertAssociationTuple(const AssociationTuple &tuple)
Inserts a known association tuple.
a class to represent an Ipv4 address mask
void InsertNeighborTuple(const NeighborTuple &tuple)
Inserts a neighbor tuple.
TwoHopNeighborSet m_twoHopNeighborSet
2-hop Neighbor Set (RFC 3626, section 4.3.2).
MprSet GetMprSet() const
Gets the MPR set.
void SetMprSet(MprSet mprSet)
Sets the MPR set to the one specified.
bool FindMprAddress(const Ipv4Address &address)
Checks if there's an MPR with a specific address.
void InsertMprSelectorTuple(const MprSelectorTuple &tuple)
Inserts a MPR selector tuple.
NeighborTuple * FindNeighborTuple(const Ipv4Address &mainAddr)
Finds a neighbor tuple.
void EraseIfaceAssocTuple(const IfaceAssocTuple &tuple)
Erases a interface association tuple.
LinkTuple * FindSymLinkTuple(const Ipv4Address &ifaceAddr, Time time)
Finds a symmetrical link tuple.
LinkTuple * FindLinkTuple(const Ipv4Address &ifaceAddr)
Finds a link tuple.
void EraseDuplicateTuple(const DuplicateTuple &tuple)
Erases a duplicate tuple.
void EraseTopologyTuple(const TopologyTuple &tuple)
Erases a topology tuple.
const NeighborTuple * FindSymNeighborTuple(const Ipv4Address &mainAddr) const
Finds a symmetrical neighbor tuple.
NeighborSet m_neighborSet
Neighbor Set (RFC 3626, section 4.3.1).
void EraseOlderTopologyTuples(const Ipv4Address &lastAddr, uint16_t ansn)
Erases a topology tuple.
TopologyTuple * FindTopologyTuple(const Ipv4Address &destAddr, const Ipv4Address &lastAddr)
Finds a topology tuple.
IfaceAssocSet m_ifaceAssocSet
Interface Association Set (RFC 3626, section 4.1).
std::string PrintMprSelectorSet() const
Prints the MPR selector sets.
IfaceAssocTuple * FindIfaceAssocTuple(const Ipv4Address &ifaceAddr)
Finds a interface association tuple.
LinkSet m_linkSet
Link Set (RFC 3626, section 4.2.1).
void InsertDuplicateTuple(const DuplicateTuple &tuple)
Inserts a duplicate tuple.
void EraseLinkTuple(const LinkTuple &tuple)
Erases a link tuple.
AssociationTuple * FindAssociationTuple(const Ipv4Address &gatewayAddr, const Ipv4Address &networkAddr, const Ipv4Mask &netmask)
Finds an association tuple.
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...
void InsertIfaceAssocTuple(const IfaceAssocTuple &tuple)
Inserts a interface association tuple.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ipv4Address neighborMainAddr
Main address of a neighbor node.
MprSelectorTuple * FindMprSelectorTuple(const Ipv4Address &mainAddr)
Finds a MPR selector tuple.
DuplicateSet m_duplicateSet
Duplicate Set (RFC 3626, section 3.4).
void EraseAssociationTuple(const AssociationTuple &tuple)
Erases a known association tuple.
Associations m_associations
The node's local Host Network Associations that will be advertised using HNA messages.
Ipv4 addresses are stored in host order in this class.
void EraseAssociation(const Association &tuple)
Erases an association.
DuplicateTuple * FindDuplicateTuple(const Ipv4Address &address, uint16_t sequenceNumber)
Finds a duplicate tuple.
void InsertTwoHopNeighborTuple(const TwoHopNeighborTuple &tuple)
Inserts a 2-hop neighbor tuple.
std::set< Ipv4Address > MprSet
MPR Set type.
void EraseTwoHopNeighborTuple(const TwoHopNeighborTuple &tuple)
Erases a 2-hop neighbor tuple.
LinkTuple & InsertLinkTuple(const LinkTuple &tuple)
Inserts a link tuple.
MprSet m_mprSet
MPR Set (RFC 3626, section 4.3.3).
MprSelectorSet m_mprSelectorSet
MPR Selector Set (RFC 3626, section 4.3.4).
void EraseNeighborTuple(const NeighborTuple &neighborTuple)
Erases a neighbor tuple.
TopologyTuple * FindNewerTopologyTuple(const Ipv4Address &lastAddr, uint16_t ansn)
Finds a topology tuple.
TopologySet m_topologySet
Topology Set (RFC 3626, section 4.4).
An Interface Association Tuple.
void EraseMprSelectorTuple(const MprSelectorTuple &tuple)
Erases a MPR selector tuple.
void InsertAssociation(const Association &tuple)
Inserts an association tuple.
void EraseTwoHopNeighborTuples(const Ipv4Address &neighbor)
Erases the 2-hop neighbor tuples with the same 1-hop neighbor.
void InsertTopologyTuple(const TopologyTuple &tuple)
Inserts a topology tuple.