[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Always use 10.0.2.2 as host addr for -net user (sli
[Qemu-devel] [PATCH] Always use 10.0.2.2 as host addr for -net user (slirp)
Sun, 30 Apr 2006 19:43:07 -0700
A couple of serious problems remain in the slirp redirection code
after the patch Paul applied on 23 April.
* If the IP address returned by gethostbyname(gethostname()) is the
address of one of the host's Ethernet interfaces, bringing down that
interface or changing its IP address disrupts redir connections
between the host and VM.
* If the IP address returned by gethostbyname(gethostname()) is
outside the 10.0.2.0/24 subnet, and the user has not manually added
this address to the routing table within the VM (in addition to the
10.0.2.0/24 route added by DHCP), TCP connections from the host to the
VM are never answered, because the response packets are dropped on the
The attached patch solves both of these problems simply by always
using 10.0.2.2 as our_addr. There seems to be no value in exposing the
host's "real" address to the VM; thanks to NAT, 10.0.2.2 always works.
Description: Text Data
|[Prev in Thread]
||[Next in Thread]|
- [Qemu-devel] [PATCH] Always use 10.0.2.2 as host addr for -net user (slirp),
Ed Swierk <=