summaryrefslogtreecommitdiff
path: root/slirp/main.h
diff options
context:
space:
mode:
authorAnders Waldenborg <anders@0x63.nu>2012-07-13 22:54:17 +0200
committerJan Kiszka <jan.kiszka@siemens.com>2012-08-03 23:31:52 +0200
commit648cd33e73cbbbf19e278101e6a9e071cb154c05 (patch)
treefd62d07953885b56d252c9a904f5566b7367cce4 /slirp/main.h
parent0f66998ff6d5d2133b9b08471a44e13b11119e50 (diff)
downloadqemu-648cd33e73cbbbf19e278101e6a9e071cb154c05.tar.gz
qemu-648cd33e73cbbbf19e278101e6a9e071cb154c05.tar.bz2
qemu-648cd33e73cbbbf19e278101e6a9e071cb154c05.zip
slirp: Handle whole 127.0.0.0/8 network as local addresses.
Changes so translation of remote address to the host's ip address in the virtual network happens for all addresses in the 127.0.0.0/8 network, not just 127.0.0.1. This fixes so that hostfwd bound to addresses such as 127.0.0.2 works. Signed-off-by: Anders Waldenborg <anders@0x63.nu> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'slirp/main.h')
-rw-r--r--slirp/main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/slirp/main.h b/slirp/main.h
index 028df4b361..bf601e223d 100644
--- a/slirp/main.h
+++ b/slirp/main.h
@@ -31,6 +31,7 @@ extern char *exec_shell;
extern u_int curtime;
extern fd_set *global_readfds, *global_writefds, *global_xfds;
extern struct in_addr loopback_addr;
+extern in_addr_t loopback_mask;
extern char *username;
extern char *socket_path;
extern int towrite_max;