Introspection did not find any typical Config paths. More...
#include <ndisc-cache.h>
Inheritance diagram for ns3::NdiscCache:
Collaboration diagram for ns3::NdiscCache:Classes | |
| class | Entry |
| A record that holds information about an NdiscCache entry. More... | |
Public Member Functions | |
| NdiscCache () | |
| Constructor. More... | |
| ~NdiscCache () | |
| Destructor. More... | |
| NdiscCache::Entry * | Add (Ipv6Address to) |
| Add an entry. More... | |
| void | Flush () |
| Flush the cache. More... | |
| Ptr< NetDevice > | GetDevice () const |
| Get the NetDevice associated with this cache. More... | |
| Ptr< Ipv6Interface > | GetInterface () const |
| Get the Ipv6Interface associated with this cache. More... | |
| uint32_t | GetUnresQlen () |
| Get the max number of waiting packet. More... | |
| NdiscCache::Entry * | Lookup (Ipv6Address dst) |
| Lookup in the cache. More... | |
| void | PrintNdiscCache (Ptr< OutputStreamWrapper > stream) |
| Print the NDISC cache entries. More... | |
| void | Remove (NdiscCache::Entry *entry) |
| Delete an entry. More... | |
| void | SetDevice (Ptr< NetDevice > device, Ptr< Ipv6Interface > interface) |
| Set the device and interface. More... | |
| void | SetUnresQlen (uint32_t unresQlen) |
| Set the max number of waiting packet. More... | |
Public Member Functions inherited from ns3::Object | |
| Object () | |
| Constructor. More... | |
| virtual | ~Object () |
| Destructor. More... | |
| void | AggregateObject (Ptr< Object > other) |
| Aggregate two Objects together. More... | |
| void | Dispose (void) |
| Dispose of this Object. More... | |
| AggregateIterator | GetAggregateIterator (void) const |
| Get an iterator to the Objects aggregated to this one. More... | |
| virtual TypeId | GetInstanceTypeId (void) const |
| Implement the GetInstanceTypeId method defined in ObjectBase. More... | |
| template<typename T > | |
| Ptr< T > | GetObject (void) const |
| Get a pointer to the requested aggregated Object. More... | |
| template<typename T > | |
| Ptr< T > | GetObject (TypeId tid) const |
| Get a pointer to the requested aggregated Object. More... | |
| void | Initialize (void) |
| Invoke DoInitialize on all Objects aggregated to this one. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| SimpleRefCount () | |
| Constructor. More... | |
| SimpleRefCount (const SimpleRefCount &o) | |
| Copy constructor. More... | |
| uint32_t | GetReferenceCount (void) const |
| Get the reference count of the object. More... | |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| Assignment. More... | |
| void | Ref (void) const |
| Increment the reference count. More... | |
| void | Unref (void) const |
| Decrement the reference count. More... | |
Public Member Functions inherited from ns3::ObjectBase | |
| virtual | ~ObjectBase () |
| Virtual destructor. More... | |
| void | GetAttribute (std::string name, AttributeValue &value) const |
| Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
| bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
| Get the value of an attribute without raising erros. More... | |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| Set a single attribute, raising fatal errors if unsuccessful. More... | |
| bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
| Set a single attribute without raising errors. More... | |
| bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
| Connect a TraceSource to a Callback with a context. More... | |
| bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
| Connect a TraceSource to a Callback without a context. More... | |
| bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
| Disconnect from a TraceSource a Callback previously connected with a context. More... | |
| bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
| Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
| static TypeId | GetTypeId () |
| Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Object | |
| static TypeId | GetTypeId (void) |
| Register this type. More... | |
Static Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| static void | Cleanup (void) |
| Noop. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
| static TypeId | GetTypeId (void) |
| Get the type ID. More... | |
Static Public Attributes | |
| static const uint32_t | DEFAULT_UNRES_QLEN = 3 |
| Default value for unres qlen. More... | |
Private Types | |
| typedef sgi::hash_map< Ipv6Address, NdiscCache::Entry *, Ipv6AddressHash > | Cache |
| Neighbor Discovery Cache container. More... | |
| typedef sgi::hash_map< Ipv6Address, NdiscCache::Entry *, Ipv6AddressHash >::iterator | CacheI |
| Neighbor Discovery Cache container iterator. More... | |
Private Member Functions | |
| NdiscCache (NdiscCache const &) | |
| Copy constructor. More... | |
| void | DoDispose () |
| Dispose this object. More... | |
| NdiscCache & | operator= (NdiscCache const &) |
| Copy constructor. More... | |
Private Attributes | |
| Ptr< NetDevice > | m_device |
| The NetDevice. More... | |
| Ptr< Ipv6Interface > | m_interface |
| the interface. More... | |
| Cache | m_ndCache |
| A list of Entry. More... | |
| uint32_t | m_unresQlen |
| Max number of packet stored in m_waiting. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::Object | |
| Object (const Object &o) | |
| Copy an Object. More... | |
| virtual void | DoInitialize (void) |
| Initialize() implementation. More... | |
| virtual void | NotifyNewAggregate (void) |
| Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
Protected Member Functions inherited from ns3::ObjectBase | |
| void | ConstructSelf (const AttributeConstructionList &attributes) |
| Complete construction of ObjectBase; invoked by derived classes. More... | |
| virtual void | NotifyConstructionCompleted (void) |
| Notifier called once the ObjectBase is fully constructed. More... | |
Related Functions inherited from ns3::ObjectBase | |
| static TypeId | GetObjectIid (void) |
| Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Introspection did not find any typical Config paths.
IPv6 Neighbor Discovery cache.
No TraceSources are defined for this type.
Size of this type is 96 bytes (on a 64-bit architecture).
Definition at line 46 of file ndisc-cache.h.
|
private |
Neighbor Discovery Cache container.
Definition at line 379 of file ndisc-cache.h.
|
private |
Neighbor Discovery Cache container iterator.
Definition at line 383 of file ndisc-cache.h.
| ns3::NdiscCache::NdiscCache | ( | ) |
| ns3::NdiscCache::~NdiscCache | ( | ) |
Destructor.
Definition at line 57 of file ndisc-cache.cc.
References Flush(), and NS_LOG_FUNCTION_NOARGS.
Here is the call graph for this function:
|
private |
Copy constructor.
Not implemented to avoid misuse
| NdiscCache::Entry * ns3::NdiscCache::Add | ( | Ipv6Address | to | ) |
Add an entry.
| to | address to add |
Definition at line 103 of file ndisc-cache.cc.
References m_ndCache, NS_ASSERT, and NS_LOG_FUNCTION.
Referenced by ns3::Icmpv6L4Protocol::HandleNS(), ns3::Icmpv6L4Protocol::HandleRedirection(), ns3::Icmpv6L4Protocol::HandleRS(), ns3::Icmpv6L4Protocol::Lookup(), and ns3::Icmpv6L4Protocol::ReceiveLLA().
Here is the caller graph for this function:
|
privatevirtual |
Dispose this object.
Reimplemented from ns3::Object.
Definition at line 63 of file ndisc-cache.cc.
References ns3::Object::DoDispose(), Flush(), m_device, m_interface, and NS_LOG_FUNCTION_NOARGS.
Here is the call graph for this function:| void ns3::NdiscCache::Flush | ( | void | ) |
Flush the cache.
Definition at line 130 of file ndisc-cache.cc.
References m_ndCache, and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::Icmpv6L4Protocol::CreateCache(), DoDispose(), ns3::Ipv6Interface::SetDown(), and ~NdiscCache().
Here is the caller graph for this function:Get the NetDevice associated with this cache.
Definition at line 85 of file ndisc-cache.cc.
References m_device, and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::Icmpv6L4Protocol::Lookup().
Here is the caller graph for this function:| Ptr< Ipv6Interface > ns3::NdiscCache::GetInterface | ( | void | ) | const |
Get the Ipv6Interface associated with this cache.
Definition at line 79 of file ndisc-cache.cc.
References m_interface, and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::Icmpv6L4Protocol::HandleNA(), ns3::Icmpv6L4Protocol::Lookup(), and ns3::Icmpv6L4Protocol::ReceiveLLA().
Here is the caller graph for this function:
|
static |
Get the type ID.
Definition at line 38 of file ndisc-cache.cc.
References DEFAULT_UNRES_QLEN, m_unresQlen, ns3::MakeUintegerAccessor(), and ns3::TypeId::SetParent().
Here is the call graph for this function:| uint32_t ns3::NdiscCache::GetUnresQlen | ( | ) |
Get the max number of waiting packet.
Definition at line 148 of file ndisc-cache.cc.
References m_unresQlen, and NS_LOG_FUNCTION_NOARGS.
| NdiscCache::Entry * ns3::NdiscCache::Lookup | ( | Ipv6Address | dst | ) |
Lookup in the cache.
| dst | destination address |
Definition at line 91 of file ndisc-cache.cc.
References m_ndCache, and NS_LOG_FUNCTION.
Referenced by ns3::Icmpv6L4Protocol::HandleNA(), ns3::Icmpv6L4Protocol::HandleNS(), ns3::Icmpv6L4Protocol::HandleRedirection(), ns3::Icmpv6L4Protocol::HandleRS(), ns3::Icmpv6L4Protocol::Lookup(), and ns3::Icmpv6L4Protocol::ReceiveLLA().
Here is the caller graph for this function:
|
private |
Copy constructor.
Not implemented to avoid misuse
| void ns3::NdiscCache::PrintNdiscCache | ( | Ptr< OutputStreamWrapper > | stream | ) |
Print the NDISC cache entries.
| stream | the ostream the NDISC cache entries is printed to |
Definition at line 154 of file ndisc-cache.cc.
References ns3::Names::FindName(), ns3::OutputStreamWrapper::GetStream(), m_device, m_ndCache, and NS_LOG_FUNCTION.
Referenced by ns3::Ipv6RoutingHelper::PrintNdiscCache(), and ns3::Ipv6RoutingHelper::PrintNdiscCacheEvery().
Here is the call graph for this function:
Here is the caller graph for this function:| void ns3::NdiscCache::Remove | ( | NdiscCache::Entry * | entry | ) |
Delete an entry.
| entry | pointer to delete from the list. |
Definition at line 114 of file ndisc-cache.cc.
References ns3::NdiscCache::Entry::ClearWaitingPacket(), m_ndCache, and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::Icmpv6L4Protocol::Lookup().
Here is the call graph for this function:
Here is the caller graph for this function:| void ns3::NdiscCache::SetDevice | ( | Ptr< NetDevice > | device, |
| Ptr< Ipv6Interface > | interface | ||
| ) |
Set the device and interface.
| device | the device |
| interface | the IPv6 interface |
Definition at line 72 of file ndisc-cache.cc.
References m_device, m_interface, and NS_LOG_FUNCTION.
Referenced by ns3::Icmpv6L4Protocol::CreateCache().
Here is the caller graph for this function:| void ns3::NdiscCache::SetUnresQlen | ( | uint32_t | unresQlen | ) |
Set the max number of waiting packet.
| unresQlen | value to set |
Definition at line 142 of file ndisc-cache.cc.
References m_unresQlen, and NS_LOG_FUNCTION.
|
static |
Default value for unres qlen.
Definition at line 60 of file ndisc-cache.h.
Referenced by GetTypeId().
The NetDevice.
Definition at line 408 of file ndisc-cache.h.
Referenced by DoDispose(), GetDevice(), PrintNdiscCache(), and SetDevice().
|
private |
the interface.
Definition at line 413 of file ndisc-cache.h.
Referenced by DoDispose(), GetInterface(), and SetDevice().
|
private |
A list of Entry.
Definition at line 418 of file ndisc-cache.h.
Referenced by Add(), ns3::NdiscCache::Entry::AddWaitingPacket(), Flush(), ns3::NdiscCache::Entry::FunctionDelayTimeout(), ns3::NdiscCache::Entry::FunctionProbeTimeout(), ns3::NdiscCache::Entry::FunctionRetransmitTimeout(), Lookup(), PrintNdiscCache(), and Remove().
|
private |
Max number of packet stored in m_waiting.
Definition at line 423 of file ndisc-cache.h.
Referenced by GetTypeId(), GetUnresQlen(), and SetUnresQlen().