Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes

ns3::NdiscCache Class Reference

IPv6 Neighbor Discovery cache. More...

#include <ndisc-cache.h>

Inheritance diagram for ns3::NdiscCache:
Inheritance graph
[legend]
Collaboration diagram for ns3::NdiscCache:
Collaboration graph
[legend]

List of all members.

Classes

class  Entry
 A record that holds information about an NdiscCache entry. More...

Public Member Functions

 NdiscCache ()
 Constructor.
 ~NdiscCache ()
 Destructor.
Ptr< NetDeviceGetDevice () const
 Get the NetDevice associated with this cache.
Ptr< Ipv6InterfaceGetInterface () const
 Get the Ipv6Interface associated with this cache.
NdiscCache::EntryLookup (Ipv6Address dst)
 Lookup in the cache.
NdiscCache::EntryAdd (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.

Detailed Description

IPv6 Neighbor Discovery cache.


Member Function Documentation

NdiscCache::Entry* ns3::NdiscCache::Add ( Ipv6Address  to  ) 

Add an entry.

Parameters:
to address to add
Returns:
an new Entry
Ptr<NetDevice> ns3::NdiscCache::GetDevice (  )  const

Get the NetDevice associated with this cache.

Returns:
NetDevice
static TypeId ns3::NdiscCache::GetTypeId ( void   )  [static]

Get the type ID.

This method returns the TypeId associated to ns3::NdiscCache.

Returns:
type ID

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/BsIpcsPacketClassifier/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/LinkManager/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/SSManager/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::BaseStationNetDevice/ServiceFlowManager/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/Classifier/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/LinkManager/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/SSScheduler/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Channel/NoiseModel/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Channel/PropagationModel/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Mac/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Phy/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::UanNetDevice/Transducer/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/BsIpcsPacketClassifier/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/LinkManager/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/SSManager/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::BaseStationNetDevice/ServiceFlowManager/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/Classifier/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/LinkManager/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/SSScheduler/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/BandwidthManager/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/BurstProfileManager/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Channel/$ns3::UanChannel/NoiseModel/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Channel/$ns3::UanChannel/PropagationModel/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/ConnectionManager/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Phy/Channel/$ns3::UanChannel/NoiseModel/$ns3::NdiscCache
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/Phy/Channel/$ns3::UanChannel/PropagationModel/$ns3::NdiscCache

Attributes defined for this type:

  • UnresolvedQueueSize: Size of the queue for packets pending an NA reply.

No TraceSources defined for this type.

Reimplemented from ns3::Object.

uint32_t ns3::NdiscCache::GetUnresQlen (  ) 

Get the max number of waiting packet.

Returns:
max number
NdiscCache::Entry* ns3::NdiscCache::Lookup ( Ipv6Address  dst  ) 

Lookup in the cache.

Parameters:
dst destination address
Returns:
the entry if found, 0 otherwise
void ns3::NdiscCache::Remove ( NdiscCache::Entry entry  ) 

Delete an entry.

Parameters:
entry pointer to delete from the list.
void ns3::NdiscCache::SetDevice ( Ptr< NetDevice device,
Ptr< Ipv6Interface interface 
)

Set the device and interface.

Parameters:
device the device
interface the IPv6 interface
void ns3::NdiscCache::SetUnresQlen ( uint32_t  unresQlen  ) 

Set the max number of waiting packet.

Parameters:
unresQlen value to set

The documentation for this class was generated from the following files: