Network interface configuration. More...
#include <network-config.hpp>
Public Member Functions | |
NetworkInterfaceConfig ()=default | |
NetworkInterfaceConfig (const std::string &hostif, const std::string &zoneif, InterfaceType type, const std::vector< InetAddr > &addrs, MacVLanMode mode) | |
const std::string & | getHostIf () const |
const std::string & | getZoneIf () const |
InterfaceType | getType () const |
MacVLanMode | getMode () const |
void | setMTU (int mtu) |
int | getMTU () const |
void | setMACAddress (const std::string &mac) |
const std::string & | getMACAddress () const |
void | setTxLength (int txlen) |
int | getTxLength () const |
const std::vector< InetAddr > & | getAddrList () const |
void | addInetAddr (const InetAddr &addr) |
Public Attributes | |
CARGO_REGISTER(mHostIf, mZoneIf, mType, mMode, mIpAddrList) private std::string | mZoneIf |
int | mType |
int | mMode |
int | mMtu |
std::string | mMacAddress |
int | mTxLength |
std::vector< InetAddr > | mIpAddrList |
Network interface configuration.
|
default |
|
inline |
void lxcpp::NetworkInterfaceConfig::addInetAddr | ( | const InetAddr & | addr | ) |
const std::vector< InetAddr > & lxcpp::NetworkInterfaceConfig::getAddrList | ( | ) | const |
const std::string & lxcpp::NetworkInterfaceConfig::getHostIf | ( | ) | const |
const std::string & lxcpp::NetworkInterfaceConfig::getMACAddress | ( | ) | const |
MacVLanMode lxcpp::NetworkInterfaceConfig::getMode | ( | ) | const |
int lxcpp::NetworkInterfaceConfig::getMTU | ( | ) | const |
int lxcpp::NetworkInterfaceConfig::getTxLength | ( | ) | const |
InterfaceType lxcpp::NetworkInterfaceConfig::getType | ( | ) | const |
const std::string & lxcpp::NetworkInterfaceConfig::getZoneIf | ( | ) | const |
void lxcpp::NetworkInterfaceConfig::setMACAddress | ( | const std::string & | mac | ) |
void lxcpp::NetworkInterfaceConfig::setMTU | ( | int | mtu | ) |
void lxcpp::NetworkInterfaceConfig::setTxLength | ( | int | txlen | ) |
std::vector<InetAddr> lxcpp::NetworkInterfaceConfig::mIpAddrList |
std::string lxcpp::NetworkInterfaceConfig::mMacAddress |
int lxcpp::NetworkInterfaceConfig::mMode |
int lxcpp::NetworkInterfaceConfig::mMtu |
int lxcpp::NetworkInterfaceConfig::mTxLength |
int lxcpp::NetworkInterfaceConfig::mType |
CARGO_REGISTER ( mHostIf, mZoneIf, mType, mMode, mIpAddrList ) private std::string lxcpp::NetworkInterfaceConfig::mZoneIf |