Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
network.cpp File Reference

Actions on network interace in the container. More...

#include "lxcpp/network.hpp"
#include "lxcpp/container.hpp"
#include "lxcpp/exception.hpp"
#include "netlink/netlink-message.hpp"
#include "utils/make-clean.hpp"
#include "utils/text.hpp"
#include "utils/exception.hpp"
#include "logger/logger.hpp"
#include <iostream>
#include <unistd.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <linux/rtnetlink.h>
#include <linux/veth.h>
#include <linux/sockios.h>
#include <linux/if_bridge.h>

Namespaces

 lxcpp
 

Macros

#define CHANGE_FLAGS_DEFAULT   0xffffffff
 
#define IFA_FLAGS   IFA_UNSPEC
 

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)
 
std::string lxcpp::toString (const InetAddr &a)
 
static rt_class_t lxcpp::getRoutingTableClass (const RoutingTable rt)
 
static RoutingTable lxcpp::getRoutingTable (unsigned tbl)
 
static std::vector< Route > lxcpp::getRoutesImpl (pid_t pid, rt_class_t tbl, const std::string &ifname, int family)
 

Detailed Description

Actions on network interace in the container.

Author
Krzysztof Dynowski (k.dyn.nosp@m.owsk.nosp@m.i@sam.nosp@m.sumg.nosp@m..com)

Macro Definition Documentation

#define CHANGE_FLAGS_DEFAULT   0xffffffff
#define IFA_FLAGS   IFA_UNSPEC