Network devices management functions declaration. More...
#include <string>
#include <vector>
#include <tuple>
#include <sys/socket.h>
#include <linux/if_link.h>
#include <sys/types.h>
Go to the source code of this file.
Namespaces | |
vasum | |
vasum::netdev | |
Typedefs | |
typedef std::vector < std::tuple< std::string, std::string > > | vasum::netdev::Attrs |
Functions | |
void | vasum::netdev::createVeth (const pid_t &nsPid, const std::string &nsDev, const std::string &hostDev) |
void | vasum::netdev::createMacvlan (const pid_t &nsPid, const std::string &nsDev, const std::string &hostDev, const macvlan_mode &mode) |
void | vasum::netdev::movePhys (const pid_t &nsPid, const std::string &devId) |
std::vector< std::string > | vasum::netdev::listNetdev (const pid_t &nsPid) |
void | vasum::netdev::destroyNetdev (const std::string &netdev, const pid_t pid) |
void | vasum::netdev::createBridge (const std::string &netdev) |
Create bridge. More... | |
Attrs | vasum::netdev::getAttrs (const pid_t nsPid, const std::string &netdev) |
void | vasum::netdev::setAttrs (const pid_t nsPid, const std::string &netdev, const Attrs &attrs) |
void | vasum::netdev::deleteIpAddress (const pid_t nsPid, const std::string &netdev, const std::string &ip) |
Remove ipv4/ipv6 address from interface. More... | |
Network devices management functions declaration.