slirp.h revision 798637dd24a31b73d512490bdb57bc3b3cf1f295
829N/A#ifndef __COMMON_H__
2362N/A#define __COMMON_H__
829N/A#ifdef RT_OS_WINDOWS
2362N/A# include <winsock2.h>
829N/A# include <ws2tcpip.h>
829N/A#define CONFIG_QEMU
829N/A#ifndef CONFIG_QEMU
829N/A#ifdef RT_OS_WINDOWS
829N/A#include "slirp_config.h"
829N/A#ifdef RT_OS_WINDOWS
829N/A# include <inttypes.h>
829N/A# include <iphlpapi.h>
#ifdef HAVE_SYS_BITYPES_H
#ifdef _MSC_VER
# include <time.h>
#ifdef NEED_TYPEDEFS
typedef char int8_t;
typedef unsigned char u_int8_t;
typedef short int16_t;
typedef unsigned short u_int16_t;
typedef int int16_t;
typedef unsigned int u_int16_t;
typedef short int32_t;
typedef unsigned short u_int32_t;
typedef int int32_t;
typedef unsigned int u_int32_t;
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#ifndef HAVE_MEMMOVE
# include <time.h>
# if HAVE_SYS_TIME_H
# include <time.h>
#ifdef HAVE_STRING_H
# include <string.h>
# include <strings.h>
#ifndef RT_OS_WINDOWS
#ifndef _P
#ifndef NO_PROTOTYPES
# define _P(x) x
# define _P(x) ()
#ifndef RT_OS_WINDOWS
#ifdef GETTIMEOFDAY_ONE_ARG
#ifndef HAVE_INET_ATON
#include <fcntl.h>
#ifndef NO_UNIX_SOCKETS
#include <signal.h>
#ifdef HAVE_SYS_SIGNAL_H
#ifndef RT_OS_WINDOWS
#if defined(HAVE_SYS_IOCTL_H)
#ifdef HAVE_SYS_SELECT_H
#ifdef HAVE_SYS_WAIT_H
#ifdef HAVE_SYS_FILIO_H
# include <stdarg.h>
# include <varargs.h>
#ifdef HAVE_SYS_STROPTS_H
#include "libslirp.h"
#include "debug.h"
#include "ip.h"
#include "tcp.h"
#include "tcp_timer.h"
#include "tcp_var.h"
#include "tcpip.h"
#include "udp.h"
#include "icmp_var.h"
#include "mbuf.h"
#include "sbuf.h"
#include "socket.h"
#include "if.h"
#include "main.h"
#include "misc.h"
#include "ctl.h"
#include "bootp.h"
#include "tftp.h"
#include "slirp_state.h"
#ifndef NULL
# define NULL (void *)0
#ifndef HAVE_INDEX
#ifndef HAVE_GETHOSTID
#ifndef RT_OS_WINDOWS
#include <netdb.h>
/* cksum.c */
/* if.c */
/* ip_input.c */
/* ip_output.c */
/* tcp_input.c */
/* tcp_output.c */
/* tcp_subr.c */
void tcp_respond _P((PNATState, struct tcpcb *, register struct tcpiphdr *, register struct mbuf *, tcp_seq, tcp_seq, int));
#ifndef RT_OS_WINDOWS
# define min(x,y) ((x) < (y) ? (x) : (y))
# define max(x,y) ((x) > (y) ? (x) : (y))
#ifdef RT_OS_WINDOWS
#ifndef VBOX_WITH_MULTI_DNS