/* $Id$ */
/** @file
* NAT Network - common definitions and declarations.
*/
/*
* Copyright (C) 2013-2014 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef _nat_proxy_h_
#define _nat_proxy_h_
#if !defined(VBOX)
#include "vbox-compat.h"
#endif
#include "winutils.h"
/* forward */
struct netif;
struct tcpip_msg;
struct pbuf;
struct sockaddr;
struct sockaddr_in;
struct sockaddr_in6;
struct ip4_lomap
{
};
struct ip4_lomap_desc
{
unsigned int num_lomap;
};
struct proxy_options {
int ipv6_enabled;
int ipv6_defroute;
const char *tftp_root;
const char **nameservers;
};
extern volatile struct proxy_options *g_proxy_options;
extern struct netif *g_proxy_netif;
void proxy_reset_socket(SOCKET);
void proxy_lwip_post(struct tcpip_msg *);
const char *proxy_lwip_strerr(err_t);
/* proxy_rtadvd.c */
void proxy_rtadvd_start(struct netif *);
void proxy_rtadvd_do_quick(void *);
/* rtmon_*.c */
int rtmon_get_defaults(void);
/* proxy_dhcp6ds.c */
/* proxy_tftpd.c */
/* pxtcp.c */
void pxtcp_init(void);
/* pxudp.c */
void pxudp_init(void);
/* pxdns.c */
void pxdns_set_nameservers(void *);
/* pxping.c */
# define HAVE_SA_LEN 0
#else
#endif
/*
* TODO: DPRINTF0 should probably become LogRel but its usage needs to
* be cleaned up a bit before.
*/
#endif /* _nat_proxy_h_ */