Keep track of a set of IPv6 interfaces.
More...
#include <ipv6-interface-container.h>
List of all members.
Public Member Functions |
| Ipv6InterfaceContainer () |
| Constructor.
|
uint32_t | GetN (void) const |
| Get the number of interfaces.
|
uint32_t | GetInterfaceIndex (uint32_t i) const |
| Get the interface index for the specified node index.
|
Ipv6Address | GetAddress (uint32_t i, uint32_t j) const |
| Get the address for the specified index.
|
void | Add (Ptr< Ipv6 > ipv6, uint32_t interface) |
| Add a couple IPv6/interface.
|
void | Add (Ipv6InterfaceContainer &c) |
| Fusion with another Ipv6InterfaceContainer.
|
void | Add (std::string ipv6Name, uint32_t interface) |
| Add a couple of name/interface.
|
void | SetRouter (uint32_t i, bool router) |
| Set the state of the stack (act as a router or not) for the specified index.
|
void | SetDefaultRoute (uint32_t i, uint32_t router) |
| Set the default route for the specified index.
|
Detailed Description
Keep track of a set of IPv6 interfaces.
Member Function Documentation
void ns3::Ipv6InterfaceContainer::Add |
( |
Ptr< Ipv6 > |
ipv6, |
|
|
uint32_t |
interface | |
|
) |
| | |
Add a couple IPv6/interface.
- Parameters:
-
| ipv6 | IPv6 address |
| interface | interface index |
void ns3::Ipv6InterfaceContainer::Add |
( |
std::string |
ipv6Name, |
|
|
uint32_t |
interface | |
|
) |
| | |
Add a couple of name/interface.
- Parameters:
-
| ipv6Name | name of a node |
| interface | interface index to add |
Ipv6Address ns3::Ipv6InterfaceContainer::GetAddress |
( |
uint32_t |
i, |
|
|
uint32_t |
j | |
|
) |
| | const |
Get the address for the specified index.
- Parameters:
-
| i | interface index |
| j | address index, generally index 0 is the link-local address |
- Returns:
- IPv6 address
uint32_t ns3::Ipv6InterfaceContainer::GetInterfaceIndex |
( |
uint32_t |
i |
) |
const |
Get the interface index for the specified node index.
- Parameters:
-
- Returns:
- interface index
uint32_t ns3::Ipv6InterfaceContainer::GetN |
( |
void |
|
) |
const |
void ns3::Ipv6InterfaceContainer::SetDefaultRoute |
( |
uint32_t |
i, |
|
|
uint32_t |
router | |
|
) |
| | |
Set the default route for the specified index.
- Parameters:
-
| i | index |
| router | the default router |
void ns3::Ipv6InterfaceContainer::SetRouter |
( |
uint32_t |
i, |
|
|
bool |
router | |
|
) |
| | |
Set the state of the stack (act as a router or not) for the specified index.
- Parameters:
-
| i | index |
| router | true : is a router, false : is an host |
The documentation for this class was generated from the following file:
- src/helper/ipv6-interface-container.h