softwarecontainer
0.18.0-739e8d7 2017-05-04
|
Sets up and manages network access and routing to the container. More...
#include <networkgatewayfunctions.h>
Public Member Functions | |
uint32_t | generateIP (const uint32_t netmask, const std::string gatewayIP, const int32_t containerID) |
Generate IP address for the container. More... | |
Sets up and manages network access and routing to the container.
The responsibility of NetworkGateway is to setup network connection as specified by given configuration. This configuration is described in detail in the user documentation, but a short summary of it is how to handle incoming and outgoing network packages using the three targets: ACCEPT, DROP and REJECT.
Definition at line 35 of file networkgatewayfunctions.h.
uint32_t softwarecontainer::NetworkGatewayFunctions::generateIP | ( | const uint32_t | netmask, |
const std::string | gatewayIP, | ||
const int32_t | containerID | ||
) |
Generate IP address for the container.
Generates an IP address and returns it
Note that a file on the system acts as a placeholder for the DHCP server. The file keeps track of the highest used IP address.
netmask | : representation available bits |
gatewayIP | : representation of the gateway IP |
containerID | representation of the containerID |
Definition at line 28 of file networkgatewayfunctions.cpp.
Referenced by softwarecontainer::NetworkGateway::activateGateway().