diff options
Diffstat (limited to 'src/VBox/Devices/Network/slirp/libslirp.h')
-rw-r--r-- | src/VBox/Devices/Network/slirp/libslirp.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/VBox/Devices/Network/slirp/libslirp.h b/src/VBox/Devices/Network/slirp/libslirp.h index e67dfcee..c00071c6 100644 --- a/src/VBox/Devices/Network/slirp/libslirp.h +++ b/src/VBox/Devices/Network/slirp/libslirp.h @@ -4,7 +4,7 @@ */ /* - * Copyright (C) 2006-2010 Oracle Corporation + * Copyright (C) 2006-2012 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; @@ -37,7 +37,6 @@ int inet_aton(const char *cp, struct in_addr *ia); #endif #include <VBox/types.h> -#include <VBox/vmm/dbgf.h> typedef struct NATState *PNATState; struct mbuf; @@ -93,9 +92,24 @@ void slirp_set_tcp_sndspace(PNATState pData, int kilobytes); int slirp_set_binding_address(PNATState, char *addr); void slirp_set_mtu(PNATState, int); -void slirp_info(PNATState pData, PCDBGFINFOHLP pHlp, const char *pszArgs); +void slirp_info(PNATState pData, const void *pvArg, const char *pszArgs); void slirp_set_somaxconn(PNATState pData, int iSoMaxConn); +/** + * This method help DrvNAT to select strategy: about VMRESUMEREASON_HOST_RESUME: + * - proceed with link termination (we let guest track host DNS settings) + * VBOX_NAT_HNCE_EXPOSED_NAME_RESOLVING_INFO + * - enforce internal DNS update (we are using dnsproxy and track but don't export DNS host settings) + * VBOX_NAT_HNCE_DNSPROXY + * - ignore (NAT configured to use hostresolver - we aren't track any host DNS changes) + * VBOX_NAT_HNCE_HOSTRESOLVER + * @note: It's safe to call this method from any thread, because settings we're checking + * are immutable at runtime. + */ +#define VBOX_NAT_HNCE_EXSPOSED_NAME_RESOLUTION_INFO 0 +#define VBOX_NAT_HNCE_DNSPROXY 1 +#define VBOX_NAT_HNCE_HOSTRESOLVER 2 +int slirp_host_network_configuration_change_strategy_selector(const PNATState); #if defined(RT_OS_WINDOWS) |