21 #ifndef IPV6_INTERFACE_H 
   22 #define IPV6_INTERFACE_H 
   26 #include "ns3/ipv6-address.h" 
   27 #include "ns3/ipv6-interface-address.h" 
   29 #include "ns3/object.h" 
   30 #include "ns3/timer.h" 
  251   typedef std::list<Ipv6InterfaceAddress> Ipv6InterfaceAddressList;
 
  252   typedef std::list<Ipv6InterfaceAddress>::iterator Ipv6InterfaceAddressListI;
 
  253   typedef std::list<Ipv6InterfaceAddress>::const_iterator Ipv6InterfaceAddressListCI;
 
Ipv6InterfaceAddressList m_addresses
The addresses assigned to this interface. 
bool m_ifup
The state of this interface. 
bool AddAddress(Ipv6InterfaceAddress iface)
Add an IPv6 address. 
void SetState(Ipv6Address address, Ipv6InterfaceAddress::State_e state)
Update state of an interface address. 
void SetUp()
Enable this interface. 
uint16_t GetRetransTimer() const 
Get the retransmission timer. 
bool m_forwarding
Forwarding state. 
Ipv6InterfaceAddress GetAddress(uint32_t index) const 
Get an address from IPv6 interface. 
IPv6 address associated with an interface. 
Ptr< NetDevice > m_device
NetDevice associated with this interface. 
void SetDevice(Ptr< NetDevice > device)
Set the NetDevice. 
void SetReachableTime(uint16_t reachableTime)
Set the reachable time. 
bool IsUp() const 
Is the interface UP ? 
bool IsDown() const 
Is the interface DOWN ? 
void SetBaseReachableTime(uint16_t baseReachableTime)
Set the base reachable time. 
uint16_t m_baseReachableTime
Base value used for computing the random reachable time value (in millisecond). 
The IPv6 representation of a network interface. 
uint16_t GetBaseReachableTime() const 
Get the base reachable time. 
uint32_t GetNAddresses(void) const 
Get number of addresses on this IPv6 interface. 
void SetMetric(uint16_t metric)
Set the metric. 
Ptr< Node > m_node
Node associated with this interface. 
virtual ~Ipv6Interface()
Destructor. 
void SetRetransTimer(uint16_t retransTimer)
Set the retransmission timer. 
uint16_t m_retransTimer
Retransmission timer (in millisecond). Time between retransmission of NS. 
static TypeId GetTypeId()
Get the type ID. 
virtual Ptr< NetDevice > GetDevice() const 
Get the NetDevice. 
void Send(Ptr< Packet > p, Ipv6Address dest)
Send a packet through this interface. 
void SetNsDadUid(Ipv6Address address, uint32_t uid)
Update NS DAD packet UID of an interface address. 
void SetNode(Ptr< Node > node)
Set node associated with interface. 
void SetForwarding(bool forward)
Set forwarding enabled or not. 
uint8_t m_curHopLimit
Current hop limit. 
void SetCurHopLimit(uint8_t curHopLimit)
Set the current hop limit. 
Ipv6InterfaceAddress GetLinkLocalAddress() const 
Get link-local address from IPv6 interface. 
uint8_t GetCurHopLimit() const 
Get the current hop limit value. 
Describes an IPv6 address. 
uint16_t GetMetric() const 
Get the metric. 
State_e
State of an address associated with an interface. 
void DoSetup()
Initialize interface. 
uint16_t m_reachableTime
Reachable time (in millisecond). The time a neighbor is considered reachable after receiving a reacha...
bool IsForwarding() const 
If the interface allows forwarding packets. 
uint16_t GetReachableTime() const 
Get the reachable time. 
Ipv6InterfaceAddress RemoveAddress(uint32_t index)
Remove an address from interface. 
a base class which provides memory management and object aggregation 
virtual void DoDispose()
Dispose this object. 
uint16_t m_metric
The metric. 
void SetDown()
Disable this interface. 
a unique identifier for an interface. 
Ipv6InterfaceAddress GetAddressMatchingDestination(Ipv6Address dst)
Get an address which is in the same network prefix as destination. 
Ptr< NdiscCache > m_ndCache
Neighbor cache. 
Ipv6Interface()
Constructs an Ipv6Interface.