IPv6 Neighbor Discovery cache. More...
#include <ndisc-cache.h>
Classes | |
class | Entry |
A record that holds information about an NdiscCache entry. More... | |
Public Member Functions | |
NdiscCache () | |
Constructor. | |
~NdiscCache () | |
Destructor. | |
Ptr< NetDevice > | GetDevice () const |
Get the NetDevice associated with this cache. | |
Ptr< Ipv6Interface > | GetInterface () const |
Get the Ipv6Interface associated with this cache. | |
NdiscCache::Entry * | Lookup (Ipv6Address dst) |
Lookup in the cache. | |
NdiscCache::Entry * | Add (Ipv6Address to) |
Add an entry. | |
void | Remove (NdiscCache::Entry *entry) |
Delete an entry. | |
void | Flush () |
Flush the cache. | |
void | SetUnresQlen (uint32_t unresQlen) |
Set the max number of waiting packet. | |
uint32_t | GetUnresQlen () |
Get the max number of waiting packet. | |
void | SetDevice (Ptr< NetDevice > device, Ptr< Ipv6Interface > interface) |
Set the device and interface. | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. | |
Static Public Attributes | |
static const uint32_t | DEFAULT_UNRES_QLEN = 3 |
Default value for unres qlen. | |
Private Member Functions | |
NdiscCache (NdiscCache const &a) | |
Copy constructor. | |
NdiscCache & | operator= (NdiscCache const &a) |
Equal operator. | |
void | DoDispose () |
Dispose this object. | |
Private Attributes | |
Ptr< NetDevice > | m_device |
The NetDevice. | |
Ptr< Ipv6Interface > | m_interface |
the interface. | |
Cache | m_ndCache |
A list of Entry. | |
uint32_t | m_unresQlen |
Max number of packet stored in m_waiting. |
IPv6 Neighbor Discovery cache.
ns3::NdiscCache::NdiscCache | ( | NdiscCache const & | a | ) | [private] |
Copy constructor.
a | cache to copy |
NdiscCache::Entry* ns3::NdiscCache::Add | ( | Ipv6Address | to | ) |
static TypeId ns3::NdiscCache::GetTypeId | ( | ) | [static] |
uint32_t ns3::NdiscCache::GetUnresQlen | ( | ) |
Get the max number of waiting packet.
NdiscCache::Entry* ns3::NdiscCache::Lookup | ( | Ipv6Address | dst | ) |
Lookup in the cache.
dst | destination address |
NdiscCache& ns3::NdiscCache::operator= | ( | NdiscCache const & | a | ) | [private] |
Equal operator.
a | cache to copy |
void ns3::NdiscCache::Remove | ( | NdiscCache::Entry * | entry | ) |
Delete an entry.
entry | pointer to delete from the list. |
void ns3::NdiscCache::SetDevice | ( | Ptr< NetDevice > | device, | |
Ptr< Ipv6Interface > | interface | |||
) |
Set the device and interface.
device | the device | |
interface | the IPv6 interface |
void ns3::NdiscCache::SetUnresQlen | ( | uint32_t | unresQlen | ) |
Set the max number of waiting packet.
unresQlen | value to set |