A record that holds information about an NdiscCache entry.
More...
#include <ndisc-cache.h>
List of all members.
Detailed Description
A record that holds information about an NdiscCache entry.
Constructor & Destructor Documentation
Member Function Documentation
void ns3::NdiscCache::Entry::AddWaitingPacket |
( |
Ptr< Packet > |
p |
) |
|
Add a packet (or replace old value) in the queue.
- Parameters:
-
Time ns3::NdiscCache::Entry::GetLastReachabilityConfirmation |
( |
|
) |
const |
Get the time of last reachability confirmation.
- Returns:
- time
Address ns3::NdiscCache::Entry::GetMacAddress |
( |
|
) |
const |
Get the MAC address of this entry.
- Returns:
- the L2 address
uint8_t ns3::NdiscCache::Entry::GetNSRetransmit |
( |
|
) |
const |
Get the number of NS retransmit.
- Returns:
- number of NS that have been retransmit
bool ns3::NdiscCache::Entry::IsDelay |
( |
|
) |
const |
Is the entry DELAY.
- Returns:
- true if the entry is in DELAY state, false otherwise
bool ns3::NdiscCache::Entry::IsIncomplete |
( |
|
) |
const |
Is the entry INCOMPLETE.
- Returns:
- true if the entry is in INCOMPLETE state, false otherwise
bool ns3::NdiscCache::Entry::IsProbe |
( |
|
) |
const |
Is the entry PROBE.
- Returns:
- true if the entry is in PROBE state, false otherwise
bool ns3::NdiscCache::Entry::IsReachable |
( |
|
) |
const |
Is the entry REACHABLE.
- Returns:
- true if the entry is in REACHABLE state, false otherwise
bool ns3::NdiscCache::Entry::IsRouter |
( |
|
) |
const |
If the entry is a host or a router.
- Returns:
- true if the node is a router, 0 if it is a host
bool ns3::NdiscCache::Entry::IsStale |
( |
|
) |
const |
Is the entry STALE.
- Returns:
- true if the entry is in STALE state, false otherwise
void ns3::NdiscCache::Entry::MarkIncomplete |
( |
Ptr< Packet > |
p |
) |
|
Changes the state to this entry to INCOMPLETE.
- Parameters:
-
| p | packet that wait to be sent |
Changes the state to this entry to REACHABLE.
- Parameters:
-
- Returns:
- the list of packet waiting
Changes the state to this entry to STALE.
- Parameters:
-
- Returns:
- the list of packet waiting
void ns3::NdiscCache::Entry::SetIpv6Address |
( |
Ipv6Address |
ipv6Address |
) |
|
Set the IPv6 address.
- Parameters:
-
void ns3::NdiscCache::Entry::SetMacAddress |
( |
Address |
mac |
) |
|
Set the MAC address of this entry.
- Parameters:
-
| mac | the MAC address to set |
void ns3::NdiscCache::Entry::SetRouter |
( |
bool |
router |
) |
|
Set the node type.
- Parameters:
-
| router | true is a router, false means a host |
The documentation for this class was generated from the following file:
- src/internet-stack/ndisc-cache.h