#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <err.h>
#include <stdint.h>
#include <stdlib.h>
#include <elf.h>
#include <sys/mman.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/eventfd.h>
#include <fcntl.h>
#include <stdbool.h>
#include <errno.h>
#include <ctype.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <time.h>
#include <netinet/in.h>
#include <net/if.h>
#include <linux/sockios.h>
#include <linux/if_tun.h>
#include <sys/uio.h>
#include <termios.h>
#include <getopt.h>
#include <assert.h>
#include <sched.h>
#include <limits.h>
#include <stddef.h>
#include <signal.h>
#include <pwd.h>
#include <grp.h>
#include <linux/virtio_config.h>
#include <linux/virtio_net.h>
#include <linux/virtio_blk.h>
#include <linux/virtio_console.h>
#include <linux/virtio_rng.h>
#include <linux/virtio_ring.h>
#include <asm/bootparam.h>
#include "../../include/linux/lguest_launcher.h"
Go to the source code of this file.
#define _LARGEFILE64_SOURCE |
#define BRIDGE_PFX "bridge:" |
#define cpu_to_le16 |
( |
|
v16 | ) |
(v16) |
#define cpu_to_le32 |
( |
|
v32 | ) |
(v32) |
#define cpu_to_le64 |
( |
|
v64 | ) |
(v64) |
#define le16_to_cpu |
( |
|
v16 | ) |
(v16) |
#define le32_to_cpu |
( |
|
v32 | ) |
(v32) |
#define le64_to_cpu |
( |
|
v64 | ) |
(v64) |
#define lg_last_avail |
( |
|
vq | ) |
((vq)->last_avail_idx) |
#define mb |
( |
|
void | ) |
__asm__ __volatile__("" : : : "memory") |
#define SIOCBRADDIF 0x89a2 /* add interface to bridge */ |
#define verbose |
( |
|
args... | ) |
do { if (verbose) printf(args); } while(0) |
#define VIRTQUEUE_NUM 256 |
#define wmb |
( |
| ) |
__asm__ __volatile__("" : : : "memory") |