Actions on network interace in the container. More...
#include "config.hpp"
#include <cargo/fields.hpp>
#include <cstring>
#include <string>
#include <vector>
#include <array>
#include <ostream>
#include <arpa/inet.h>
Go to the source code of this file.
Classes | |
class | lxcpp::InetAddr |
Unified ip address. More... | |
struct | lxcpp::Route |
struct | lxcpp::Attr |
class | lxcpp::NetworkInterface |
Network operations to be performed on given container and interface operates on netlink device. More... | |
Namespaces | |
lxcpp | |
Typedefs | |
typedef std::vector< Attr > | lxcpp::Attrs |
Enumerations | |
enum | lxcpp::InetAddrType { lxcpp::InetAddrType::IPV4, lxcpp::InetAddrType::IPV6 } |
Suported address types. More... | |
enum | lxcpp::RoutingTable { lxcpp::RoutingTable::UNSPEC, lxcpp::RoutingTable::COMPAT, lxcpp::RoutingTable::DEFAULT, lxcpp::RoutingTable::MAIN, lxcpp::RoutingTable::LOCAL, lxcpp::RoutingTable::USER } |
enum | lxcpp::AttrName { lxcpp::AttrName::MAC, lxcpp::AttrName::FLAGS, lxcpp::AttrName::CHANGE, lxcpp::AttrName::TYPE, lxcpp::AttrName::MTU, lxcpp::AttrName::LINK, lxcpp::AttrName::TXQLEN } |
enum | lxcpp::InterfaceType : int { lxcpp::InterfaceType::VETH, lxcpp::InterfaceType::BRIDGE, lxcpp::InterfaceType::MACVLAN } |
Created interface type. More... | |
enum | lxcpp::MacVLanMode { lxcpp::MacVLanMode::PRIVATE, lxcpp::MacVLanMode::VEPA, lxcpp::MacVLanMode::BRIDGE, lxcpp::MacVLanMode::PASSTHRU } |
Suported MacVLan modes. More... | |
enum | lxcpp::NetStatus { lxcpp::NetStatus::DOWN, lxcpp::NetStatus::UP } |
Functions | |
std::string | lxcpp::toString (const in_addr &addr) |
std::string | lxcpp::toString (const in6_addr &addr) |
void | lxcpp::fromString (const std::string &s, in_addr &addr) |
void | lxcpp::fromString (const std::string &s, in6_addr &addr) |
static bool | lxcpp::operator== (const in_addr &a, const in_addr &b) |
static bool | lxcpp::operator== (const in6_addr &a, const in6_addr &b) |
static bool | lxcpp::operator== (const InetAddr &a, const InetAddr &b) |
std::string | lxcpp::toString (const InetAddr &a) |
std::string | lxcpp::toString (const RoutingTable rt) |
std::ostream & | lxcpp::operator<< (std::ostream &os, const AttrName &a) |
Actions on network interace in the container.