ns-3
|
A record that that holds information about an ArpCache entry. More...
#include <arp-cache.h>
Public Member Functions | |
Entry (ArpCache *arp) | |
Constructor. | |
void | MarkDead (void) |
Changes the state of this entry to dead. | |
void | MarkAlive (Address macAddress) |
void | MarkWaitReply (Ptr< Packet > waiting) |
bool | UpdateWaitReply (Ptr< Packet > waiting) |
bool | IsDead (void) |
bool | IsAlive (void) |
bool | IsWaitReply (void) |
Address | GetMacAddress (void) const |
Ipv4Address | GetIpv4Address (void) const |
void | SetIpv4Address (Ipv4Address destination) |
bool | IsExpired (void) const |
Ptr< Packet > | DequeuePending (void) |
uint32_t | GetRetries (void) const |
void | IncrementRetries (void) |
Increment the counter of number of retries for an entry. | |
void | ClearRetries (void) |
Zero the counter of number of retries for an entry. |
A record that that holds information about an ArpCache entry.
ns3::ArpCache::Entry::Entry | ( | ArpCache * | arp | ) |
Ptr< Packet > ns3::ArpCache::Entry::DequeuePending | ( | void | ) |
References NS_LOG_FUNCTION.
Referenced by ns3::ArpL3Protocol::Receive().
Ipv4Address ns3::ArpCache::Entry::GetIpv4Address | ( | void | ) | const |
Address ns3::ArpCache::Entry::GetMacAddress | ( | void | ) | const |
References NS_ASSERT.
Referenced by ns3::ArpL3Protocol::Lookup().
uint32_t ns3::ArpCache::Entry::GetRetries | ( | void | ) | const |
bool ns3::ArpCache::Entry::IsAlive | ( | void | ) |
Referenced by ns3::ArpL3Protocol::Lookup().
bool ns3::ArpCache::Entry::IsDead | ( | void | ) |
Referenced by ns3::ArpL3Protocol::Lookup().
bool ns3::ArpCache::Entry::IsExpired | ( | void | ) | const |
This function returns true if the time elapsed strictly exceeds the timeout value (i.e., is not less than or equal to the timeout).
References ns3::Time::GetSeconds(), ns3::Now(), and NS_LOG_DEBUG.
Referenced by ns3::ArpL3Protocol::Lookup().
bool ns3::ArpCache::Entry::IsWaitReply | ( | void | ) |
Referenced by ns3::ArpL3Protocol::Lookup(), and ns3::ArpL3Protocol::Receive().
void ns3::ArpCache::Entry::MarkAlive | ( | Address | macAddress | ) |
macAddress |
References NS_ASSERT, and NS_LOG_FUNCTION.
Referenced by ns3::ArpL3Protocol::Receive().
void ns3::ArpCache::Entry::MarkWaitReply | ( | Ptr< Packet > | waiting | ) |
waiting |
References NS_ASSERT, and NS_LOG_FUNCTION.
Referenced by ns3::ArpL3Protocol::Lookup().
void ns3::ArpCache::Entry::SetIpv4Address | ( | Ipv4Address | destination | ) |
destination | The Ipv4Address for this entry |
References NS_LOG_FUNCTION.
bool ns3::ArpCache::Entry::UpdateWaitReply | ( | Ptr< Packet > | waiting | ) |
waiting |
References NS_ASSERT, and NS_LOG_FUNCTION.
Referenced by ns3::ArpL3Protocol::Lookup().