slirp: Handle whole 127.0.0.0/8 network as local addresses.
authorAnders Waldenborg <anders@0x63.nu>
Fri, 13 Jul 2012 20:54:17 +0000 (22:54 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 3 Aug 2012 21:31:52 +0000 (23:31 +0200)
commit648cd33e73cbbbf19e278101e6a9e071cb154c05
treefd62d07953885b56d252c9a904f5566b7367cce4
parent0f66998ff6d5d2133b9b08471a44e13b11119e50
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>
slirp/main.h
slirp/slirp.c
slirp/tcp_subr.c