|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
30 : m_interface (interface)
57 : m_interface (interface)
59 NS_LOG_FUNCTION (
this << interface << maxRtrAdvInterval << minRtrAdvInterval);
60 NS_ASSERT (maxRtrAdvInterval > minRtrAdvInterval);
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
uint32_t GetMinDelayBetweenRAs() const
Get minimum delay between RAs.
void SetMinRtrAdvInterval(uint32_t minRtrAdvInterval)
Get minimum RA interval.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
bool m_managedFlag
Managed flag.
void SetCurHopLimit(uint8_t curHopLimit)
Set current hop limit.
void SetHomeAgentFlag(bool homeAgentFlag)
Set "home agent" flag.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t GetDefaultPreference() const
Get default preference.
std::list< Ptr< RadvdPrefix > >::iterator RadvdPrefixListI
Container Iterator: Ptr to RadvdPrefix.
uint32_t m_homeAgentPreference
Home agent preference.
RadvdPrefixList m_prefixes
List of prefixes to advertise.
uint32_t m_minRtrAdvInterval
Minimum RA interval in milliseconds.
void SetIntervalOpt(bool intervalOpt)
Set flag to add or not advertisement interval to RA.
void SetLinkMtu(uint32_t linkMtu)
Set link MTU.
bool m_homeAgentInfo
Flag to add Home Agent Information option (Mobile IPv6).
void SetMaxRtrAdvInterval(uint32_t maxRtrAdvInterval)
Get maximum RA interval.
void SetHomeAgentLifeTime(uint32_t homeAgentLifeTime)
Set home agent lifetime.
bool IsHomeAgentFlag() const
Is "home agent" flag enabled ?
Time GetLastRaTxTime()
Get the last time a RA has been sent.
void SetLastRaTxTime(Time now)
Set the last RA send time.
void SetReachableTime(uint32_t reachableTime)
Set reachable time.
bool IsMobRtrSupportFlag() const
Is "mobile router support" flag enabled ?
uint8_t GetCurHopLimit() const
Get current hop limit.
bool m_homeAgentFlag
Flag to add HA (home agent) flag in RA.
uint32_t GetHomeAgentPreference() const
Get home agent preference.
uint32_t GetDefaultLifeTime() const
Get default lifetime.
uint32_t GetInterface() const
Get interface index for this configuration.
uint32_t m_defaultLifeTime
Default life time in seconds.
uint32_t GetMinRtrAdvInterval() const
Get minimum RA interval.
void SetOtherConfigFlag(bool otherConfigFlag)
Set "other config" flag.
uint32_t m_minDelayBetweenRAs
Minimum delay between RA in milliseconds.
void SetMinDelayBetweenRAs(uint32_t minDelayBetweenRAs)
Set minimum delay between RAs.
Simulation virtual time values and global simulation resolution.
uint32_t m_homeAgentLifeTime
Home agent lifetime in seconds.
uint32_t m_interface
Interface to advertise RA.
uint32_t m_reachableTime
Reachable time in milliseconds.
uint32_t m_retransTimer
Retransmission timer in milliseconds.
uint32_t m_maxRtrAdvInterval
Maximum RA interval in milliseconds.
uint32_t GetHomeAgentLifeTime() const
Get home agent lifetime.
uint32_t GetReachableTime() const
Get reachable time.
bool m_sendAdvert
Flag whether or not router sends periodic RA and respond to RS.
void AddPrefix(Ptr< RadvdPrefix > routerPrefix)
Add a prefix to advertise on interface.
void SetManagedFlag(bool managedFlag)
Set managed flag.
RadvdPrefixList GetPrefixes() const
Get list of prefixes advertised for this interface.
void SetSendAdvert(bool sendAdvert)
Set send advert flag.
uint8_t m_defaultPreference
Preference associated with default router.
uint32_t GetMaxRtrAdvInterval() const
Get maximum RA interval.
bool m_sourceLLAddress
Flag to add link-layer address in RA.
void SetHomeAgentInfo(bool homeAgentFlag)
Set flag to add or not HA information option to RA.
uint32_t GetLinkMtu() const
Get link MTU.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
void SetRetransTimer(uint32_t retransTimer)
Set retransmission timer.
bool IsHomeAgentInfo() const
Is Home Agent Information option should be included in RA ?
void SetSourceLLAddress(bool sourceLLAddress)
Set flag to add or not LLA to RA.
uint32_t m_linkMtu
Link MTU to use.
void SetHomeAgentPreference(uint32_t homeAgentPreference)
Set home agent preference.
bool m_mobRtrSupportFlag
Flag for HA to signals it supports Mobile Router registrations (NEMO Basic).
bool m_otherConfigFlag
Other configuration flag.
Time m_lastSendTime
Last RA send time.
bool IsSendAdvert() const
Is send advert enabled (periodic RA and reply to RS) ?
RadvdInterface(uint32_t interface)
Constructor.
uint8_t m_initialRtrAdvertisementsLeft
Number of fast announcement to do.
bool IsInitialRtrAdv()
Checks if the interface is subject to the initial Rtr Advertisements rule.
bool m_intervalOpt
Flag to add Advertisement Interval option in RA.
~RadvdInterface()
Destructor.
bool IsSourceLLAddress() const
Is source LLA option should be included in RA ?
bool IsOtherConfigFlag() const
Is "other config" flag enabled ?
uint32_t GetRetransTimer() const
Get retransmission timer.
void SetDefaultLifeTime(uint32_t defaultLifeTime)
Set default lifetime.
void SetMobRtrSupportFlag(bool mobRtrSupportFlag)
Set "mobile router support" flag.
void SetDefaultPreference(uint8_t defaultPreference)
Set default preference.
bool IsManagedFlag() const
Is managed flag enabled ?
bool IsIntervalOpt() const
Is advertisement interval option should be included in RA ?
uint32_t m_curHopLimit
Current hop limit (TTL).