|
| NetworkingHelper (bool ipv4Enabled, bool ipv6Enabled) |
|
bool | storeContainerInterface (in_addr_t addr, const std::string &vethName) |
| Constructs addresses for the container based on input address. Also stores the veth device used for the container. More...
|
|
bool | ipv4 () const |
|
in_addr_t | ipv4Addr () const |
|
std::string | ipv4AddrStr () const |
|
bool | ipv6 () const |
|
struct in6_addr | ipv6Addr () const |
|
std::string | ipv6AddrStr () const |
|
std::string | vethName () const |
|
|
bool | mIpv4Enabled |
|
in_addr_t | mIpv4Addr |
|
std::string | mIpv4AddrStr |
|
bool | mIpv6Enabled |
|
struct in6_addr | mIpv6Addr |
|
std::string | mIpv6AddrStr |
|
std::string | mVethName |
|
◆ in6addrCreate()
struct in6_addr NetworkingHelper::in6addrCreate |
( |
const in_addr_t |
inaddr | ) |
|
|
static |
Constructs an IPv6 address to be used by Dobby.
Takes an IPv4 address type and merges it into IN6ADDR_BASE to make a unique IPv6 address.
The final address will be 2080:d0bb:1e::nnnn:nnnn, where the "n"s will be replaced by the IPv4 address binary.
- Parameters
-
[in] | inaddr | IPv4 address to merge to the base address |
- Returns
- IPv6 address
◆ storeContainerInterface()
bool NetworkingHelper::storeContainerInterface |
( |
in_addr_t |
addr, |
|
|
const std::string & |
vethName |
|
) |
| |
Constructs addresses for the container based on input address. Also stores the veth device used for the container.
- Parameters
-
[in] | addr | IPv4 address to construct addresses from. |
[in] | vethName | Name of the veth device reserved for the container. |
- Returns
- true if successful, otherwise false
The documentation for this class was generated from the following files:
- rdkPlugins/Networking/include/NetworkingHelper.h
- rdkPlugins/Networking/source/NetworkingHelper.cpp