|
NOVA User-Level Environment
Version testbox/changed-memory-timing-317-g320d8b5
|
#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) |
| Buffer * | map_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__ |
| enum Request |
| enum Slot_state |
| 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 |
||
| ) |
| enum Request __attribute__ |
| size_t const buf_size = 0x400000 |
| size_t const mtu_size = 16380 |