OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
libvirt_instance_adapter.cc File Reference
#include <arpa/inet.h>
#include <errno.h>
#include <libvirt/libvirt.h>
#include <libvirt/virterror.h>
#include <net/if.h>
#include <linux/if_tun.h>
#include <boost/lexical_cast.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <pugixml/pugixml.hpp>
#include <fstream>
#include "cfg/cfg_init.h"
#include "oper/libvirt_instance_adapter.h"
#include "oper/service_instance.h"
#include "oper/instance_task.h"
#include "oper/interface_common.h"
#include "base/address.h"
#include "base/logging.h"
Include dependency graph for libvirt_instance_adapter.cc:

Go to the source code of this file.

Functions

static bool close_descriptor (int fd)
 
static bool alloc_tap_interface (const char *devname, int flags)
 
static bool destroy_tap_interface (const char *devname)
 
static xml_node get_or_create_node (xml_node *parent, const std::string &child_name)
 

Function Documentation

static bool alloc_tap_interface ( const char *  devname,
int  flags 
)
static

Definition at line 40 of file libvirt_instance_adapter.cc.

Here is the call graph for this function:

static bool close_descriptor ( int  fd)
static

Definition at line 30 of file libvirt_instance_adapter.cc.

static bool destroy_tap_interface ( const char *  devname)
static

Definition at line 82 of file libvirt_instance_adapter.cc.

Here is the call graph for this function:

static xml_node get_or_create_node ( xml_node *  parent,
const std::string &  child_name 
)
static

Definition at line 113 of file libvirt_instance_adapter.cc.