A Discrete-Event Network Simulator
API
ns3::Ipv6Interface Class Reference

The IPv6 representation of a network interface. More...

#include "ipv6-interface.h"

+ Inheritance diagram for ns3::Ipv6Interface:
+ Collaboration diagram for ns3::Ipv6Interface:

Public Member Functions

 Ipv6Interface ()
 Constructs an Ipv6Interface. More...
 
 Ipv6Interface (const Ipv6Interface &)=delete
 
 ~Ipv6Interface () override
 Destructor. More...
 
bool AddAddress (Ipv6InterfaceAddress iface)
 Add an IPv6 address. More...
 
void AddAddressCallback (Callback< void, Ptr< Ipv6Interface >, Ipv6InterfaceAddress > addAddressCallback)
 This callback is set when an address is added from an interface with auto-generated Ndisc cache and it allow the neighbor cache helper to update neighbor's Ndisc cache. More...
 
Ipv6InterfaceAddress GetAddress (uint32_t index) const
 Get an address from IPv6 interface. More...
 
Ipv6InterfaceAddress GetAddressMatchingDestination (Ipv6Address dst)
 Get an address which is in the same network prefix as destination. More...
 
uint16_t GetBaseReachableTime () const
 Get the base reachable time. More...
 
uint8_t GetCurHopLimit () const
 Get the current hop limit value. More...
 
virtual Ptr< NetDeviceGetDevice () const
 Get the NetDevice. More...
 
Ipv6InterfaceAddress GetLinkLocalAddress () const
 Get link-local address from IPv6 interface. More...
 
uint16_t GetMetric () const
 Get the metric. More...
 
uint32_t GetNAddresses () const
 Get number of addresses on this IPv6 interface. More...
 
Ptr< NdiscCacheGetNdiscCache () const
 
uint16_t GetReachableTime () const
 Get the reachable time. More...
 
uint16_t GetRetransTimer () const
 Get the retransmission timer. More...
 
bool IsDown () const
 Is the interface DOWN ? More...
 
bool IsForwarding () const
 If the interface allows forwarding packets. More...
 
bool IsSolicitedMulticastAddress (Ipv6Address address) const
 Checks if the address is a Solicited Multicast address for this interface. More...
 
bool IsUp () const
 Is the interface UP ? More...
 
Ipv6Interfaceoperator= (const Ipv6Interface &)=delete
 
Ipv6InterfaceAddress RemoveAddress (Ipv6Address address)
 Remove the given Ipv6 address from the interface. More...
 
Ipv6InterfaceAddress RemoveAddress (uint32_t index)
 Remove an address from interface. More...
 
void RemoveAddressCallback (Callback< void, Ptr< Ipv6Interface >, Ipv6InterfaceAddress > removeAddressCallback)
 This callback is set when an address is removed from an interface with auto-generated Ndisc cache and it allow the neighbor cache helper to update neighbor's Ndisc cache. More...
 
void Send (Ptr< Packet > p, const Ipv6Header &hdr, Ipv6Address dest)
 Send a packet through this interface. More...
 
void SetBaseReachableTime (uint16_t baseReachableTime)
 Set the base reachable time. More...
 
void SetCurHopLimit (uint8_t curHopLimit)
 Set the current hop limit. More...
 
void SetDevice (Ptr< NetDevice > device)
 Set the NetDevice. More...
 
void SetDown ()
 Disable this interface. More...
 
void SetForwarding (bool forward)
 Set forwarding enabled or not. More...
 
void SetMetric (uint16_t metric)
 Set the metric. More...
 
void SetNode (Ptr< Node > node)
 Set node associated with interface. More...
 
void SetNsDadUid (Ipv6Address address, uint32_t uid)
 Update NS DAD packet UID of an interface address. More...
 
void SetReachableTime (uint16_t reachableTime)
 Set the reachable time. More...
 
void SetRetransTimer (uint16_t retransTimer)
 Set the retransmission timer. More...
 
void SetState (Ipv6Address address, Ipv6InterfaceAddress::State_e state)
 Update state of an interface address. More...
 
void SetTrafficControl (Ptr< TrafficControlLayer > tc)
 Set the TrafficControlLayer. More...
 
void SetUp ()
 Enable this interface. More...
 
- Public Member Functions inherited from ns3::Object
 Object ()
 Constructor. More...
 
 ~Object () override
 Destructor. More...
 
void AggregateObject (Ptr< Object > other)
 Aggregate two Objects together. More...
 
void Dispose ()
 Dispose of this Object. More...
 
AggregateIterator GetAggregateIterator () const
 Get an iterator to the Objects aggregated to this one. More...
 
TypeId GetInstanceTypeId () const override
 Get the most derived TypeId for this Object. More...
 
template<typename T >
Ptr< T > GetObject () const
 Get a pointer to the requested aggregated Object. More...
 
template<>
Ptr< ObjectGetObject () const
 Specialization of () for objects of type ns3::Object. More...
 
template<typename T >
Ptr< T > GetObject (TypeId tid) const
 Get a pointer to the requested aggregated Object by TypeId. More...
 
template<>
Ptr< ObjectGetObject (TypeId tid) const
 Specialization of (TypeId tid) for objects of type ns3::Object. More...
 
void Initialize ()
 Invoke DoInitialize on all Objects aggregated to this one. More...
 
bool IsInitialized () const
 Check if the object has been initialized. More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 Default constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o[[maybe_unused]])
 Copy constructor. More...
 
uint32_t GetReferenceCount () const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o[[maybe_unused]])
 Assignment operator. More...
 
void Ref () const
 Increment the reference count. More...
 
void Unref () const
 Decrement the reference count. More...
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor. More...
 
void GetAttribute (std::string name, AttributeValue &value) const
 Get the value of an attribute, raising fatal errors if unsuccessful. More...
 
bool GetAttributeFailSafe (std::string name, AttributeValue &value) const
 Get the value of an attribute without raising errors. More...
 
void SetAttribute (std::string name, const AttributeValue &value)
 Set a single attribute, raising fatal errors if unsuccessful. More...
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 Set a single attribute without raising errors. More...
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 Connect a TraceSource to a Callback with a context. More...
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 Connect a TraceSource to a Callback without a context. More...
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected with a context. More...
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected without a context. More...
 

Static Public Member Functions

static TypeId GetTypeId ()
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::Object
static TypeId GetTypeId ()
 Register this type. More...
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId ()
 Get the type ID. More...
 

Protected Member Functions

void DoDispose () override
 Dispose this object. More...
 
- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
 Copy an Object. More...
 
virtual void DoInitialize ()
 Initialize() implementation. More...
 
virtual void NotifyNewAggregate ()
 Notify all Objects aggregated to this one of a new Object being aggregated. More...
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 Complete construction of ObjectBase; invoked by derived classes. More...
 
virtual void NotifyConstructionCompleted ()
 Notifier called once the ObjectBase is fully constructed. More...
 

Private Types

typedef std::list< std::pair< Ipv6InterfaceAddress, Ipv6Address > > Ipv6InterfaceAddressList
 Container for the Ipv6InterfaceAddresses. More...
 
typedef std::list< std::pair< Ipv6InterfaceAddress, Ipv6Address > >::const_iterator Ipv6InterfaceAddressListCI
 Const Container Iterator for the Ipv6InterfaceAddresses. More...
 
typedef std::list< std::pair< Ipv6InterfaceAddress, Ipv6Address > >::iterator Ipv6InterfaceAddressListI
 Container Iterator for the Ipv6InterfaceAddresses. More...
 

Private Member Functions

void DoSetup ()
 Initialize interface. More...
 

Private Attributes

Callback< void, Ptr< Ipv6Interface >, Ipv6InterfaceAddressm_addAddressCallback
 add address callback More...
 
Ipv6InterfaceAddressList m_addresses
 The addresses assigned to this interface. More...
 
uint16_t m_baseReachableTime
 Base value used for computing the random reachable time value (in millisecond). More...
 
uint8_t m_curHopLimit
 Current hop limit. More...
 
Ptr< NetDevicem_device
 NetDevice associated with this interface. More...
 
bool m_forwarding
 Forwarding state. More...
 
bool m_ifup
 The state of this interface. More...
 
Ipv6InterfaceAddress m_linkLocalAddress
 The link-local addresses assigned to this interface. More...
 
uint16_t m_metric
 The metric. More...
 
Ptr< NdiscCachem_ndCache
 Neighbor cache. More...
 
Ptr< Nodem_node
 Node associated with this interface. More...
 
uint16_t m_reachableTime
 Reachable time (in millisecond). More...
 
Callback< void, Ptr< Ipv6Interface >, Ipv6InterfaceAddressm_removeAddressCallback
 remove address callback More...
 
uint16_t m_retransTimer
 Retransmission timer (in millisecond). More...
 
Ptr< TrafficControlLayerm_tc
 TrafficControlLayer associated with this interface. More...
 

Additional Inherited Members

Detailed Description

The IPv6 representation of a network interface.

By default IPv6 interfaces are created in the "down" state with IP "fe80::1" and a /64 prefix. Before becoming usable, the user must invoke SetUp on them once the final IPv6 address and mask has been set.

Definition at line 52 of file ipv6-interface.h.

Member Typedef Documentation

◆ Ipv6InterfaceAddressList

Container for the Ipv6InterfaceAddresses.

Definition at line 309 of file ipv6-interface.h.

◆ Ipv6InterfaceAddressListCI

Const Container Iterator for the Ipv6InterfaceAddresses.

Definition at line 321 of file ipv6-interface.h.

◆ Ipv6InterfaceAddressListI

Container Iterator for the Ipv6InterfaceAddresses.

Definition at line 315 of file ipv6-interface.h.

Constructor & Destructor Documentation

◆ Ipv6Interface() [1/2]

ns3::Ipv6Interface::Ipv6Interface ( )

Constructs an Ipv6Interface.

Definition at line 51 of file ipv6-interface.cc.

References NS_LOG_FUNCTION.

◆ ~Ipv6Interface()

ns3::Ipv6Interface::~Ipv6Interface ( )
override

Destructor.

Definition at line 67 of file ipv6-interface.cc.

◆ Ipv6Interface() [2/2]

ns3::Ipv6Interface::Ipv6Interface ( const Ipv6Interface )
delete

Member Function Documentation

◆ AddAddress()

◆ AddAddressCallback()

void ns3::Ipv6Interface::AddAddressCallback ( Callback< void, Ptr< Ipv6Interface >, Ipv6InterfaceAddress addAddressCallback)

This callback is set when an address is added from an interface with auto-generated Ndisc cache and it allow the neighbor cache helper to update neighbor's Ndisc cache.

Parameters
addAddressCallbackCallback when remove an address.

Definition at line 606 of file ipv6-interface.cc.

References m_addAddressCallback, and NS_LOG_FUNCTION.

Referenced by ns3::NeighborCacheHelper::PopulateNeighborEntriesIpv6().

+ Here is the caller graph for this function:

◆ DoDispose()

void ns3::Ipv6Interface::DoDispose ( void  )
overrideprotectedvirtual

Dispose this object.

Reimplemented from ns3::Object.

Definition at line 72 of file ipv6-interface.cc.

References ns3::Object::DoDispose(), m_device, m_ndCache, m_node, m_tc, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ DoSetup()

void ns3::Ipv6Interface::DoSetup ( )
private

Initialize interface.

Definition at line 83 of file ipv6-interface.cc.

References AddAddress(), GetDevice(), ns3::Object::GetObject(), ns3::Ipv6::GetProtocol(), ns3::Icmpv6L4Protocol::GetStaticProtocolNumber(), m_device, m_linkLocalAddress, m_ndCache, m_node, ns3::Ipv6Address::MakeAutoconfiguredLinkLocalAddress(), and NS_LOG_FUNCTION.

Referenced by SetUp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAddress()

Ipv6InterfaceAddress ns3::Ipv6Interface::GetAddress ( uint32_t  index) const

◆ GetAddressMatchingDestination()

Ipv6InterfaceAddress ns3::Ipv6Interface::GetAddressMatchingDestination ( Ipv6Address  dst)

Get an address which is in the same network prefix as destination.

Parameters
dstdestination address
Returns
Corresponding Ipv6InterfaceAddress or assert if not found

Definition at line 387 of file ipv6-interface.cc.

References ns3::Ipv6InterfaceAddress::GetAddress(), ns3::Ipv6InterfaceAddress::GetPrefix(), ns3::Ipv6Prefix::IsMatch(), m_addresses, and NS_LOG_FUNCTION.

Referenced by ns3::Icmpv6L4Protocol::Lookup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBaseReachableTime()

uint16_t ns3::Ipv6Interface::GetBaseReachableTime ( ) const

Get the base reachable time.

Returns
base reachable time

Definition at line 524 of file ipv6-interface.cc.

References m_baseReachableTime, and NS_LOG_FUNCTION.

◆ GetCurHopLimit()

uint8_t ns3::Ipv6Interface::GetCurHopLimit ( ) const

Get the current hop limit value.

Returns
current hop limit

Definition at line 510 of file ipv6-interface.cc.

References m_curHopLimit, and NS_LOG_FUNCTION.

◆ GetDevice()

◆ GetLinkLocalAddress()

Ipv6InterfaceAddress ns3::Ipv6Interface::GetLinkLocalAddress ( ) const

Get link-local address from IPv6 interface.

Returns
link-local Ipv6InterfaceAddress, assert if not found

Definition at line 271 of file ipv6-interface.cc.

References m_linkLocalAddress, and NS_LOG_FUNCTION.

Referenced by ns3::Icmpv6L4Protocol::HandleEchoRequest(), ns3::Icmpv6L4Protocol::HandleNS(), ns3::Ipv6L3Protocol::IpForward(), ns3::Icmpv6L4Protocol::Lookup(), and ns3::NeighborCacheHelper::PopulateNeighborEntriesIpv6().

+ Here is the caller graph for this function:

◆ GetMetric()

uint16_t ns3::Ipv6Interface::GetMetric ( ) const

Get the metric.

Returns
the metric

Definition at line 153 of file ipv6-interface.cc.

References m_metric, and NS_LOG_FUNCTION.

Referenced by ns3::Ipv6L3Protocol::GetMetric().

+ Here is the caller graph for this function:

◆ GetNAddresses()

◆ GetNdiscCache()

Ptr< NdiscCache > ns3::Ipv6Interface::GetNdiscCache ( ) const
Returns
NDISC cache used by this interface

Definition at line 591 of file ipv6-interface.cc.

References m_ndCache, and NS_LOG_FUNCTION.

Referenced by ns3::NeighborCacheHelper::AddEntry(), FlushTest::DoRun(), ns3::NeighborCacheHelper::FlushAutoGenerated(), and ns3::NeighborCacheHelper::UpdateCacheByIpv6AddressRemoved().

+ Here is the caller graph for this function:

◆ GetReachableTime()

uint16_t ns3::Ipv6Interface::GetReachableTime ( ) const

Get the reachable time.

Returns
reachable time

Definition at line 538 of file ipv6-interface.cc.

References m_reachableTime, and NS_LOG_FUNCTION.

◆ GetRetransTimer()

uint16_t ns3::Ipv6Interface::GetRetransTimer ( ) const

Get the retransmission timer.

Returns
retransmission timer

Definition at line 552 of file ipv6-interface.cc.

References m_retransTimer, and NS_LOG_FUNCTION.

◆ GetTypeId()

TypeId ns3::Ipv6Interface::GetTypeId ( void  )
static

Get the type ID.

Returns
type ID

Definition at line 45 of file ipv6-interface.cc.

References ns3::TypeId::SetParent().

+ Here is the call graph for this function:

◆ IsDown()

bool ns3::Ipv6Interface::IsDown ( ) const

Is the interface DOWN ?

Returns
true if interface is disabled, false otherwise.

Definition at line 167 of file ipv6-interface.cc.

References m_ifup, and NS_LOG_FUNCTION.

◆ IsForwarding()

bool ns3::Ipv6Interface::IsForwarding ( ) const

If the interface allows forwarding packets.

Returns
true if forwarding is enabled, false otherwise

Definition at line 196 of file ipv6-interface.cc.

References m_forwarding, and NS_LOG_FUNCTION.

◆ IsSolicitedMulticastAddress()

bool ns3::Ipv6Interface::IsSolicitedMulticastAddress ( Ipv6Address  address) const

Checks if the address is a Solicited Multicast address for this interface.

Parameters
addressthe address to check.
Returns
true if it is a solicited multicast address.

Definition at line 280 of file ipv6-interface.cc.

References first::address, m_addresses, and NS_LOG_FUNCTION.

◆ IsUp()

bool ns3::Ipv6Interface::IsUp ( ) const

Is the interface UP ?

Returns
true if interface is enabled, false otherwise.

Definition at line 160 of file ipv6-interface.cc.

References m_ifup, and NS_LOG_FUNCTION.

Referenced by ns3::Ipv6L3Protocol::IsUp(), Send(), and ns3::Ipv6L3Protocol::SendRealOut().

+ Here is the caller graph for this function:

◆ operator=()

Ipv6Interface& ns3::Ipv6Interface::operator= ( const Ipv6Interface )
delete

◆ RemoveAddress() [1/2]

Ipv6InterfaceAddress ns3::Ipv6Interface::RemoveAddress ( Ipv6Address  address)

Remove the given Ipv6 address from the interface.

Parameters
addressThe Ipv6 address to remove
Returns
The removed Ipv6 interface address
The null interface address if the interface did not contain the address or if loopback address was passed as argument

Definition at line 360 of file ipv6-interface.cc.

References first::address, ns3::Ipv6Address::GetLoopback(), m_addresses, m_removeAddressCallback, NS_LOG_FUNCTION, and NS_LOG_WARN.

+ Here is the call graph for this function:

◆ RemoveAddress() [2/2]

Ipv6InterfaceAddress ns3::Ipv6Interface::RemoveAddress ( uint32_t  index)

Remove an address from interface.

Parameters
indexindex to remove
Returns
Ipv6InterfaceAddress address whose index is index

Definition at line 329 of file ipv6-interface.cc.

References m_addresses, m_removeAddressCallback, NS_FATAL_ERROR, and NS_LOG_FUNCTION.

Referenced by RemoveIpv6Address(), DynamicNeighborCacheTest::RemoveIpv6Address(), and DynamicPartialTest::RemoveIpv6Address().

+ Here is the caller graph for this function:

◆ RemoveAddressCallback()

void ns3::Ipv6Interface::RemoveAddressCallback ( Callback< void, Ptr< Ipv6Interface >, Ipv6InterfaceAddress removeAddressCallback)

This callback is set when an address is removed from an interface with auto-generated Ndisc cache and it allow the neighbor cache helper to update neighbor's Ndisc cache.

Parameters
removeAddressCallbackCallback when remove an address.

Definition at line 598 of file ipv6-interface.cc.

References m_removeAddressCallback, and NS_LOG_FUNCTION.

Referenced by ns3::NeighborCacheHelper::PopulateNeighborEntriesIpv6().

+ Here is the caller graph for this function:

◆ Send()

void ns3::Ipv6Interface::Send ( Ptr< Packet p,
const Ipv6Header hdr,
Ipv6Address  dest 
)

Send a packet through this interface.

Parameters
ppacket to send
hdrIPv6 header
destnext hop address of packet.
Note
This method will eventually call the private SendTo method which must be implemented by subclasses.
Todo:
additional checks needed here (such as whether multicast goes to loopback)?

Definition at line 407 of file ipv6-interface.cc.

References ns3::Packet::AddHeader(), GetDevice(), ns3::Object::GetObject(), ns3::Ipv6::GetProtocol(), ns3::Icmpv6L4Protocol::GetStaticProtocolNumber(), ns3::Ipv6Address::IsMulticast(), IsUp(), m_addresses, m_device, m_ndCache, m_node, m_tc, NS_ASSERT, NS_ASSERT_MSG, NS_LOG_FUNCTION, NS_LOG_LOGIC, ns3::NetDevice::PACKET_HOST, ns3::Ipv6L3Protocol::PROT_NUMBER, ns3::TrafficControlLayer::Receive(), and ns3::Simulator::ScheduleNow().

Referenced by ns3::Icmpv6L4Protocol::DoDAD(), ns3::Icmpv6L4Protocol::HandleNA(), ns3::Ipv6L3Protocol::ReachabilityHint(), ns3::Icmpv6L4Protocol::ReceiveLLA(), and ns3::Ipv6L3Protocol::SendRealOut().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetBaseReachableTime()

void ns3::Ipv6Interface::SetBaseReachableTime ( uint16_t  baseReachableTime)

Set the base reachable time.

Parameters
baseReachableTimethe value to set

Definition at line 517 of file ipv6-interface.cc.

References m_baseReachableTime, and NS_LOG_FUNCTION.

◆ SetCurHopLimit()

void ns3::Ipv6Interface::SetCurHopLimit ( uint8_t  curHopLimit)

Set the current hop limit.

Parameters
curHopLimitthe value to set

Definition at line 503 of file ipv6-interface.cc.

References m_curHopLimit, and NS_LOG_FUNCTION.

◆ SetDevice()

void ns3::Ipv6Interface::SetDevice ( Ptr< NetDevice device)

Set the NetDevice.

Parameters
deviceNetDevice

Definition at line 125 of file ipv6-interface.cc.

References m_device, and NS_LOG_FUNCTION.

◆ SetDown()

void ns3::Ipv6Interface::SetDown ( )

Disable this interface.

Definition at line 187 of file ipv6-interface.cc.

References ns3::NdiscCache::Flush(), m_addresses, m_ifup, m_ndCache, and NS_LOG_FUNCTION.

Referenced by ns3::Ipv6L3Protocol::SetDown().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetForwarding()

void ns3::Ipv6Interface::SetForwarding ( bool  forward)

Set forwarding enabled or not.

Parameters
forwardforwarding state

Definition at line 203 of file ipv6-interface.cc.

References m_forwarding, and NS_LOG_FUNCTION.

Referenced by ns3::Ipv6L3Protocol::SetForwarding().

+ Here is the caller graph for this function:

◆ SetMetric()

void ns3::Ipv6Interface::SetMetric ( uint16_t  metric)

Set the metric.

Parameters
metricconfigured routing metric (cost) of this interface

Definition at line 146 of file ipv6-interface.cc.

References m_metric, and NS_LOG_FUNCTION.

Referenced by ns3::Ipv6L3Protocol::SetMetric().

+ Here is the caller graph for this function:

◆ SetNode()

void ns3::Ipv6Interface::SetNode ( Ptr< Node node)

Set node associated with interface.

Parameters
nodenode

Definition at line 118 of file ipv6-interface.cc.

References m_node, and NS_LOG_FUNCTION.

◆ SetNsDadUid()

void ns3::Ipv6Interface::SetNsDadUid ( Ipv6Address  address,
uint32_t  uid 
)

Update NS DAD packet UID of an interface address.

Parameters
addressIPv6 address
uidpacket UID

Definition at line 575 of file ipv6-interface.cc.

References first::address, m_addresses, and NS_LOG_FUNCTION.

Referenced by ns3::Icmpv6L4Protocol::DoDAD().

+ Here is the caller graph for this function:

◆ SetReachableTime()

void ns3::Ipv6Interface::SetReachableTime ( uint16_t  reachableTime)

Set the reachable time.

Parameters
reachableTimevalue to set

Definition at line 531 of file ipv6-interface.cc.

References m_reachableTime, and NS_LOG_FUNCTION.

◆ SetRetransTimer()

void ns3::Ipv6Interface::SetRetransTimer ( uint16_t  retransTimer)

Set the retransmission timer.

Parameters
retransTimervalue to set

Definition at line 545 of file ipv6-interface.cc.

References m_retransTimer, and NS_LOG_FUNCTION.

◆ SetState()

void ns3::Ipv6Interface::SetState ( Ipv6Address  address,
Ipv6InterfaceAddress::State_e  state 
)

Update state of an interface address.

Parameters
addressIPv6 address
statenew state

Definition at line 559 of file ipv6-interface.cc.

References first::address, m_addresses, and NS_LOG_FUNCTION.

Referenced by ns3::Icmpv6L4Protocol::FunctionDadTimeout(), and ns3::Icmpv6L4Protocol::HandleNA().

+ Here is the caller graph for this function:

◆ SetTrafficControl()

void ns3::Ipv6Interface::SetTrafficControl ( Ptr< TrafficControlLayer tc)

Set the TrafficControlLayer.

Parameters
tcTrafficControlLayer object

Definition at line 132 of file ipv6-interface.cc.

References m_tc, and NS_LOG_FUNCTION.

◆ SetUp()

void ns3::Ipv6Interface::SetUp ( )

Enable this interface.

Definition at line 174 of file ipv6-interface.cc.

References DoSetup(), m_ifup, and NS_LOG_FUNCTION.

Referenced by ns3::Ipv6L3Protocol::SetUp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_addAddressCallback

Callback<void, Ptr<Ipv6Interface>, Ipv6InterfaceAddress> ns3::Ipv6Interface::m_addAddressCallback
private

add address callback

Definition at line 399 of file ipv6-interface.h.

Referenced by AddAddress(), and AddAddressCallback().

◆ m_addresses

Ipv6InterfaceAddressList ns3::Ipv6Interface::m_addresses
private

◆ m_baseReachableTime

uint16_t ns3::Ipv6Interface::m_baseReachableTime
private

Base value used for computing the random reachable time value (in millisecond).

Definition at line 381 of file ipv6-interface.h.

Referenced by GetBaseReachableTime(), and SetBaseReachableTime().

◆ m_curHopLimit

uint8_t ns3::Ipv6Interface::m_curHopLimit
private

Current hop limit.

Definition at line 376 of file ipv6-interface.h.

Referenced by GetCurHopLimit(), and SetCurHopLimit().

◆ m_device

Ptr<NetDevice> ns3::Ipv6Interface::m_device
private

NetDevice associated with this interface.

Definition at line 361 of file ipv6-interface.h.

Referenced by AddAddress(), DoDispose(), DoSetup(), GetDevice(), Send(), and SetDevice().

◆ m_forwarding

bool ns3::Ipv6Interface::m_forwarding
private

Forwarding state.

Definition at line 346 of file ipv6-interface.h.

Referenced by IsForwarding(), and SetForwarding().

◆ m_ifup

bool ns3::Ipv6Interface::m_ifup
private

The state of this interface.

Definition at line 341 of file ipv6-interface.h.

Referenced by IsDown(), IsUp(), SetDown(), and SetUp().

◆ m_linkLocalAddress

Ipv6InterfaceAddress ns3::Ipv6Interface::m_linkLocalAddress
private

The link-local addresses assigned to this interface.

Definition at line 336 of file ipv6-interface.h.

Referenced by DoSetup(), and GetLinkLocalAddress().

◆ m_metric

uint16_t ns3::Ipv6Interface::m_metric
private

The metric.

Definition at line 351 of file ipv6-interface.h.

Referenced by GetMetric(), and SetMetric().

◆ m_ndCache

Ptr<NdiscCache> ns3::Ipv6Interface::m_ndCache
private

Neighbor cache.

Definition at line 371 of file ipv6-interface.h.

Referenced by DoDispose(), DoSetup(), GetNdiscCache(), Send(), and SetDown().

◆ m_node

Ptr<Node> ns3::Ipv6Interface::m_node
private

Node associated with this interface.

Definition at line 356 of file ipv6-interface.h.

Referenced by AddAddress(), DoDispose(), DoSetup(), Send(), and SetNode().

◆ m_reachableTime

uint16_t ns3::Ipv6Interface::m_reachableTime
private

Reachable time (in millisecond).

The time a neighbor is considered reachable after receiving a reachability confirmation.

Definition at line 387 of file ipv6-interface.h.

Referenced by GetReachableTime(), and SetReachableTime().

◆ m_removeAddressCallback

Callback<void, Ptr<Ipv6Interface>, Ipv6InterfaceAddress> ns3::Ipv6Interface::m_removeAddressCallback
private

remove address callback

Definition at line 396 of file ipv6-interface.h.

Referenced by RemoveAddress(), and RemoveAddressCallback().

◆ m_retransTimer

uint16_t ns3::Ipv6Interface::m_retransTimer
private

Retransmission timer (in millisecond).

Time between retransmission of NS.

Definition at line 393 of file ipv6-interface.h.

Referenced by GetRetransTimer(), and SetRetransTimer().

◆ m_tc

Ptr<TrafficControlLayer> ns3::Ipv6Interface::m_tc
private

TrafficControlLayer associated with this interface.

Definition at line 366 of file ipv6-interface.h.

Referenced by DoDispose(), Send(), and SetTrafficControl().


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