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

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...
 

Detailed Description

Network devices management functions declaration.

Author
Mateusz Malicki (m.mal.nosp@m.icki.nosp@m.2@sam.nosp@m.sung.nosp@m..com)