create a umip (mip6d) daemon as an application and associate it to a node More...
#include <mip6d-helper.h>
Public Member Functions | |
Mip6dHelper () | |
void | AddEgressInterface (Ptr< Node > node, const char *ifname) |
void | AddHaServedPrefix (Ptr< Node > node, Ipv6Address prefix, Ipv6Prefix plen) |
void | AddHomeAddress (Ptr< Node > node, Ipv6Address addr, Ipv6Prefix plen) |
void | AddHomeAgentAddress (Ptr< Node > node, Ipv6Address addr) |
void | AddMNProfileMAG (Ptr< Node > node, Mac48Address mn_id, Ipv6Address lma_addr, Ipv6Address home_pfx, Ipv6Prefix home_plen) |
void | AddMobileNetworkPrefix (Ptr< Node > node, Ipv6Address prefix, Ipv6Prefix plen) |
void | EnableDebug (NodeContainer nodes) |
void | EnableDSMIP6 (NodeContainer nodes) |
void | EnableHA (NodeContainer nodes) |
void | EnableLMA (Ptr< Node > node, const char *ifname) |
void | EnableMAG (Ptr< Node > node, const char *ifname, Ipv6Address addr) |
void | EnableMR (NodeContainer nodes) |
ApplicationContainer | Install (NodeContainer nodes) |
ApplicationContainer | Install (Ptr< Node > node) |
ApplicationContainer | Install (std::string nodeName) |
void | SetAttribute (std::string name, const AttributeValue &value) |
Configure ping applications attribute. | |
void | SetBinary (NodeContainer nodes, std::string binary) |
void | UseManualConfig (NodeContainer nodes) |
Private Member Functions | |
void | GenerateConfig (Ptr< Node > node) |
ApplicationContainer | InstallPriv (Ptr< Node > node) |
create a umip (mip6d) daemon as an application and associate it to a node
Definition at line 36 of file mip6d-helper.h.
ns3::Mip6dHelper::Mip6dHelper | ( | ) |
Create a Mip6dHelper which is used to make life easier for people wanting to use mip6d Applications.
Definition at line 111 of file mip6d-helper.cc.
void ns3::Mip6dHelper::AddEgressInterface | ( | Ptr< Node > | node, |
const char * | ifname | ||
) |
Definition at line 211 of file mip6d-helper.cc.
References ns3::Mip6dConfig::m_mr_egress_if.
void ns3::Mip6dHelper::AddHaServedPrefix | ( | Ptr< Node > | node, |
Ipv6Address | prefix, | ||
Ipv6Prefix | plen | ||
) |
Definition at line 147 of file mip6d-helper.cc.
References ns3::Mip6dConfig::Print().
void ns3::Mip6dHelper::AddHomeAddress | ( | Ptr< Node > | node, |
Ipv6Address | addr, | ||
Ipv6Prefix | plen | ||
) |
Definition at line 243 of file mip6d-helper.cc.
References ns3::Mip6dConfig::Print().
void ns3::Mip6dHelper::AddHomeAgentAddress | ( | Ptr< Node > | node, |
Ipv6Address | addr | ||
) |
Definition at line 226 of file mip6d-helper.cc.
References ns3::Mip6dConfig::Print().
void ns3::Mip6dHelper::AddMNProfileMAG | ( | Ptr< Node > | node, |
Mac48Address | mn_id, | ||
Ipv6Address | lma_addr, | ||
Ipv6Address | home_pfx, | ||
Ipv6Prefix | home_plen | ||
) |
Definition at line 296 of file mip6d-helper.cc.
References ns3::Mip6dConfig::pmipMNprofile_t::m_home_prefix, ns3::Mip6dConfig::pmipMNprofile_t::m_lma_addr, and ns3::Mip6dConfig::pmipMNprofile_t::m_mn_id.
void ns3::Mip6dHelper::AddMobileNetworkPrefix | ( | Ptr< Node > | node, |
Ipv6Address | prefix, | ||
Ipv6Prefix | plen | ||
) |
Definition at line 191 of file mip6d-helper.cc.
References ns3::Mip6dConfig::Print().
void ns3::Mip6dHelper::EnableDebug | ( | NodeContainer | nodes | ) |
Definition at line 346 of file mip6d-helper.cc.
References ns3::Mip6dConfig::m_debug.
void ns3::Mip6dHelper::EnableDSMIP6 | ( | NodeContainer | nodes | ) |
Definition at line 329 of file mip6d-helper.cc.
References ns3::Mip6dConfig::m_dsmip6enable.
void ns3::Mip6dHelper::EnableHA | ( | NodeContainer | nodes | ) |
Definition at line 122 of file mip6d-helper.cc.
References ns3::Mip6dConfig::m_haenable, and ns3::LinuxSocketFdFactory::Set().
void ns3::Mip6dHelper::EnableLMA | ( | Ptr< Node > | node, |
const char * | ifname | ||
) |
Definition at line 263 of file mip6d-helper.cc.
References ns3::Mip6dConfig::m_haenable.
void ns3::Mip6dHelper::EnableMAG | ( | Ptr< Node > | node, |
const char * | ifname, | ||
Ipv6Address | addr | ||
) |
Definition at line 278 of file mip6d-helper.cc.
References ns3::Mip6dConfig::m_magenable.
void ns3::Mip6dHelper::EnableMR | ( | NodeContainer | nodes | ) |
Definition at line 168 of file mip6d-helper.cc.
References ns3::Mip6dConfig::m_mrenable, and ns3::LinuxSocketFdFactory::Set().
|
private |
Definition at line 394 of file mip6d-helper.cc.
References ns3::Mip6dConfig::m_lma_mag_ifname.
Referenced by InstallPriv().
ApplicationContainer ns3::Mip6dHelper::Install | ( | NodeContainer | nodes | ) |
Install a mip6d application on each Node in the provided NodeContainer.
nodes | The NodeContainer containing all of the nodes to get a mip6d application via ProcessManager. |
Definition at line 558 of file mip6d-helper.cc.
References InstallPriv().
ApplicationContainer ns3::Mip6dHelper::Install | ( | Ptr< Node > | node | ) |
Install a mip6d application on the provided Node. The Node is specified directly by a Ptr<Node>
node | The node to install the Application on. |
Definition at line 545 of file mip6d-helper.cc.
References InstallPriv().
ApplicationContainer ns3::Mip6dHelper::Install | ( | std::string | nodeName | ) |
Install a mip6d application on the provided Node. The Node is specified by a string that must have previosly been associated with a Node using the Object Name Service.
nodeName | The node to install the ProcessApplication on. |
Definition at line 551 of file mip6d-helper.cc.
References InstallPriv().
|
private |
Definition at line 570 of file mip6d-helper.cc.
References GenerateConfig(), ns3::DceApplicationHelper::Install(), ns3::DceApplicationHelper::ParseArguments(), ns3::DceApplicationHelper::ResetArguments(), ns3::DceApplicationHelper::SetBinary(), and ns3::DceApplicationHelper::SetStackSize().
Referenced by Install().
void ns3::Mip6dHelper::SetAttribute | ( | std::string | name, |
const AttributeValue & | value | ||
) |
Configure ping applications attribute.
name | attribute's name |
value | attribute's value |
Definition at line 116 of file mip6d-helper.cc.
void ns3::Mip6dHelper::SetBinary | ( | NodeContainer | nodes, |
std::string | binary | ||
) |
Definition at line 378 of file mip6d-helper.cc.
void ns3::Mip6dHelper::UseManualConfig | ( | NodeContainer | nodes | ) |
Definition at line 362 of file mip6d-helper.cc.