|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
23 #include "ns3/simulator.h"
35 .SetGroupName (
"Internet")
36 .AddAttribute (
"CacheExpiryTime",
37 "Validity time for a Path MTU entry. Default is 10 minutes, minimum is 5 minutes.",
57 iter->second.Cancel ();
98 if (validity >
Seconds (60 * 5))
104 NS_LOG_LOGIC (
"rejecting a PMTU validity timer lesser than 5 minutes");
a unique identifier for an interface.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Ptr< const AttributeChecker > MakeTimeChecker(const Time min, const Time max)
Helper to make a Time checker with bounded range.
An identifier for simulation events.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::map< Ipv6Address, EventId >::iterator pathMtuTimerIter
Container of the IPv6 PMTU data (Ipv6 destination address and expiration event).
Time GetPmtuValidityTime() const
Gets the Path MTU validity time.
uint32_t GetPmtu(Ipv6Address dst)
Gets the known Path MTU for the specific destination.
bool SetPmtuValidityTime(Time validity)
Sets the Path MTU validity time (minimum is 5 minutes)
std::map< Ipv6Address, uint32_t > m_pathMtu
Path MTU table.
Describes an IPv6 address.
static EventId Schedule(Time const &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
void ClearPmtu(Ipv6Address dst)
Clears the Path MTU for the specific destination.
virtual void DoDispose()
Dispose object.
std::map< Ipv6Address, EventId > m_pathMtuTimer
Path MTU Expiration table.
void SetPmtu(Ipv6Address dst, uint32_t pmtu)
Sets the Path MTU for the specific destination.
A base class which provides memory management and object aggregation.
Simulation virtual time values and global simulation resolution.
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
Ipv6PmtuCache()
Constructor.
static TypeId GetTypeId()
Get the type ID.
Time Seconds(double value)
Construct a Time in the indicated unit.
AttributeValue implementation for Time.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Time m_validityTime
Path MTU entry validity time.
~Ipv6PmtuCache()
Destructor.
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.