OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
interface_ksync.cc File Reference
#include <stdio.h>
#include <string.h>
#include <net/if.h>
#include <boost/asio.hpp>
#include <db/db_entry.h>
#include <db/db_table.h>
#include <db/db_table_partition.h>
#include <ksync/ksync_index.h>
#include <ksync/ksync_entry.h>
#include <ksync/ksync_object.h>
#include <ksync/ksync_netlink.h>
#include <ksync/ksync_sock.h>
#include <vrouter/ksync/ksync_agent_sandesh.h>
#include <init/agent_param.h>
#include "vrouter/ksync/agent_ksync_types.h"
#include "vr_types.h"
#include "base/logging.h"
#include "oper/interface_common.h"
#include "oper/mirror_table.h"
#include "interface_ksync.h"
#include "vr_interface.h"
#include "vhost.h"
#include "pkt/pkt_handler.h"
#include "vrouter/ksync/nexthop_ksync.h"
#include "vrouter/ksync/mirror_ksync.h"
#include "vrouter/ksync/ksync_init.h"
Include dependency graph for interface_ksync.cc:

Go to the source code of this file.

Macros

#define TUN_INTF_CLONE_DEV   "/dev/net/tun"
 
#define SOCK_RETRY_COUNT   4
 
#define VIF_FAT_FLOW_ENCODE_AGGR_PROTO_PORT(prefix_aggr, ignore_addr, protocol, port)
 

Functions

bool IsValidOsIndex (size_t os_index, Interface::Type type, uint16_t vlan_id, VmInterface::VmiType vmi_type, Interface::Transport transport)
 

Macro Definition Documentation

#define SOCK_RETRY_COUNT   4

Definition at line 37 of file interface_ksync.cc.

#define TUN_INTF_CLONE_DEV   "/dev/net/tun"

Definition at line 36 of file interface_ksync.cc.

#define VIF_FAT_FLOW_ENCODE_AGGR_PROTO_PORT (   prefix_aggr,
  ignore_addr,
  protocol,
  port 
)
Value:
(((prefix_aggr) << 28) | \
((ignore_addr) << 24) | \
((protocol) << 16) | \
(port))

Definition at line 39 of file interface_ksync.cc.

Function Documentation

bool IsValidOsIndex ( size_t  os_index,
Interface::Type  type,
uint16_t  vlan_id,
VmInterface::VmiType  vmi_type,
Interface::Transport  transport 
)

Definition at line 665 of file interface_ksync.cc.