NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tap_connector.cc File Reference
#include <linux/if_ether.h>
#include <linux/if_tun.h>
#include <linux/sockios.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>

Classes

struct  Buffer

Enumerations

enum  Request { NET_INIT = 0x40001000, NET_WAIT = 0x40001001 }
enum  Slot_state { EMPTY, FULL }

Functions

void barrier ()
unsigned long vmm_call (Request eax, unsigned long ebx=0, unsigned long ecx=0, unsigned long edx=0)
int if_add_tap (char **name)
int if_get_idx (int fd, char const *ifname)
bool if_set_up (int fd, char const *ifname)
bool if_add_to_bridge (int fd, char const *brdev, int ifidx)
Buffermap_buffer (size_t size)
int main (int argc, char *argv[])

Variables

size_t const mtu_size = 16380
size_t const buf_size = 0x400000
enum Request __attribute__

Enumeration Type Documentation

enum Request
Enumerator:
NET_INIT 
NET_WAIT 
enum Slot_state
Enumerator:
EMPTY 
FULL 

Function Documentation

void barrier ( )
int if_add_tap ( char **  name)
bool if_add_to_bridge ( int  fd,
char const *  brdev,
int  ifidx 
)
int if_get_idx ( int  fd,
char const *  ifname 
)
bool if_set_up ( int  fd,
char const *  ifname 
)
int main ( int  argc,
char *  argv[] 
)
Buffer* map_buffer ( size_t  size)
unsigned long vmm_call ( Request  eax,
unsigned long  ebx = 0,
unsigned long  ecx = 0,
unsigned long  edx = 0 
)

Variable Documentation

enum Request __attribute__
size_t const buf_size = 0x400000
size_t const mtu_size = 16380