ns3::ArpCache::ArpCache::Entry Class Reference

A record that that holds information about an ArpCache entry. More...

#include <arp-cache.h>

Collaboration diagram for ns3::ArpCache::ArpCache::Entry:

Collaboration graph
[legend]

List of all members.

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< PacketDequeuePending (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.


Detailed Description

A record that that holds information about an ArpCache entry.

Constructor & Destructor Documentation

ns3::ArpCache::ArpCache::Entry::Entry ( ArpCache arp  ) 

Constructor.

Parameters:
arp The ArpCache this entry belongs to


Member Function Documentation

Ptr<Packet> ns3::ArpCache::ArpCache::Entry::DequeuePending ( void   ) 

Returns:
0 is no packet is pending, the next packet to send if packets are pending.

Ipv4Address ns3::ArpCache::ArpCache::Entry::GetIpv4Address ( void   )  const

Returns:
The Ipv4Address for this entry

Address ns3::ArpCache::ArpCache::Entry::GetMacAddress ( void   )  const

Returns:
The MacAddress of this entry

uint32_t ns3::ArpCache::ArpCache::Entry::GetRetries ( void   )  const

Returns:
number of retries that have been sent for an ArpRequest in WaitReply state.

bool ns3::ArpCache::ArpCache::Entry::IsAlive ( void   ) 

Returns:
True if the state of this entry is alive; false otherwise.

bool ns3::ArpCache::ArpCache::Entry::IsDead ( void   ) 

Returns:
True if the state of this entry is dead; false otherwise.

bool ns3::ArpCache::ArpCache::Entry::IsExpired ( void   )  const

Returns:
True if this entry has timed out; false otherwise.
This function returns true if the time elapsed strictly exceeds the timeout value (i.e., is not less than or equal to the timeout).

bool ns3::ArpCache::ArpCache::Entry::IsWaitReply ( void   ) 

Returns:
True if the state of this entry is wait_reply; false otherwise.

void ns3::ArpCache::ArpCache::Entry::MarkAlive ( Address  macAddress  ) 

Parameters:
macAddress 

void ns3::ArpCache::ArpCache::Entry::MarkWaitReply ( Ptr< Packet waiting  ) 

Parameters:
waiting 

void ns3::ArpCache::ArpCache::Entry::SetIpv4Address ( Ipv4Address  destination  ) 

Parameters:
destination The Ipv4Address for this entry

bool ns3::ArpCache::ArpCache::Entry::UpdateWaitReply ( Ptr< Packet waiting  ) 

Parameters:
waiting 
Returns:


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

Generated on Fri Apr 9 15:01:10 2010 for NS-3 by  doxygen 1.5.8