Ping6 application helper. More...
#include <ping6-helper.h>
Collaboration diagram for ns3::Ping6Helper:Public Member Functions | |
| Ping6Helper () | |
| Constructor. More... | |
| ApplicationContainer | Install (NodeContainer c) |
| Install the application in Nodes. More... | |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| Set some attributes. More... | |
| void | SetIfIndex (uint32_t ifIndex) |
| Set the out interface index. More... | |
| void | SetLocal (Ipv6Address ip) |
| Set the local IPv6 address. More... | |
| void | SetRemote (Ipv6Address ip) |
| Set the remote IPv6 address. More... | |
| void | SetRoutersAddress (std::vector< Ipv6Address > routers) |
| Set routers addresses for routing type 0. More... | |
Private Attributes | |
| ObjectFactory | m_factory |
| An object factory. More... | |
| uint32_t | m_ifIndex |
| Out interface index. More... | |
| Ipv6Address | m_localIp |
| The local IPv6 address. More... | |
| Ipv6Address | m_remoteIp |
| The remote IPv6 address. More... | |
| std::vector< Ipv6Address > | m_routers |
| Routers addresses. More... | |
Ping6 application helper.
Definition at line 39 of file ping6-helper.h.
| ns3::Ping6Helper::Ping6Helper | ( | ) |
Constructor.
Definition at line 29 of file ping6-helper.cc.
References ns3::Ping6::GetTypeId(), m_factory, and ns3::ObjectFactory::SetTypeId().
Here is the call graph for this function:| ApplicationContainer ns3::Ping6Helper::Install | ( | NodeContainer | c | ) |
Install the application in Nodes.
| c | list of Nodes |
Definition at line 50 of file ping6-helper.cc.
References ns3::ApplicationContainer::Add(), ns3::Node::AddApplication(), ns3::NodeContainer::Begin(), ns3::ObjectFactory::Create(), ns3::NodeContainer::End(), m_factory, m_ifIndex, m_localIp, m_remoteIp, and m_routers.
Here is the call graph for this function:| void ns3::Ping6Helper::SetAttribute | ( | std::string | name, |
| const AttributeValue & | value | ||
| ) |
Set some attributes.
| name | attribute name |
| value | attribute value |
Definition at line 45 of file ping6-helper.cc.
References m_factory, and ns3::ObjectFactory::Set().
Here is the call graph for this function:| void ns3::Ping6Helper::SetIfIndex | ( | uint32_t | ifIndex | ) |
Set the out interface index.
This is to send to link-local (unicast or multicast) address when a node has multiple interfaces.
| ifIndex | interface index |
Definition at line 67 of file ping6-helper.cc.
References m_ifIndex.
| void ns3::Ping6Helper::SetLocal | ( | Ipv6Address | ip | ) |
Set the local IPv6 address.
| ip | local IPv6 address |
Definition at line 35 of file ping6-helper.cc.
References m_localIp.
| void ns3::Ping6Helper::SetRemote | ( | Ipv6Address | ip | ) |
Set the remote IPv6 address.
| ip | remote IPv6 address |
Definition at line 40 of file ping6-helper.cc.
References m_remoteIp.
| void ns3::Ping6Helper::SetRoutersAddress | ( | std::vector< Ipv6Address > | routers | ) |
Set routers addresses for routing type 0.
| routers | routers addresses |
Definition at line 72 of file ping6-helper.cc.
References m_routers.
|
private |
An object factory.
Definition at line 92 of file ping6-helper.h.
Referenced by Install(), Ping6Helper(), and SetAttribute().
|
private |
Out interface index.
Definition at line 107 of file ping6-helper.h.
Referenced by Install(), and SetIfIndex().
|
private |
The local IPv6 address.
Definition at line 97 of file ping6-helper.h.
Referenced by Install(), and SetLocal().
|
private |
The remote IPv6 address.
Definition at line 102 of file ping6-helper.h.
Referenced by Install(), and SetRemote().
|
private |
Routers addresses.
Definition at line 112 of file ping6-helper.h.
Referenced by Install(), and SetRoutersAddress().