INET Framework for OMNeT++/OMNEST
inet::Ipv6NeighbourCache::Key Struct Reference

Key into neighbour cache. More...

#include <Ipv6NeighbourCache.h>

Public Member Functions

 Key (Ipv6Address addr, int ifaceID)
 
bool operator< (const Key &b) const
 

Public Attributes

Ipv6Address address
 
int interfaceID
 

Detailed Description

Key into neighbour cache.

Note that address does NOT identify the neighbour itself, because link-local addresses are in common use between routers.

Constructor & Destructor Documentation

◆ Key()

inet::Ipv6NeighbourCache::Key::Key ( Ipv6Address  addr,
int  ifaceID 
)
inline
51 { address = addr; interfaceID = ifaceID; }

Member Function Documentation

◆ operator<()

bool inet::Ipv6NeighbourCache::Key::operator< ( const Key b) const
inline
53  {
54  return interfaceID == b.interfaceID ? address < b.address : interfaceID < b.interfaceID;
55  }

Member Data Documentation

◆ address

◆ interfaceID


The documentation for this struct was generated from the following file:
inet::Ipv6NeighbourCache::Key::interfaceID
int interfaceID
Definition: Ipv6NeighbourCache.h:50
inet::Ipv6NeighbourCache::Key::address
Ipv6Address address
Definition: Ipv6NeighbourCache.h:49
inet::units::values::b
value< int64_t, units::b > b
Definition: Units.h:1241