aboutsummaryrefslogtreecommitdiff
path: root/slirp/misc.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-03 19:58:17 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-03 19:58:17 +0000
commit8dbca8dd8a81d7f1afd6ef23b418c8f9d292b65d (patch)
treeae7373143a133db559faa9fdcf8b028f7165eb70 /slirp/misc.c
parent68cae3d8c10f914296dfc52cebe214264031df7d (diff)
separate alias_addr (10.0.2.2) from our_addr (Ed Swierk)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1895 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/misc.c')
-rw-r--r--slirp/misc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/slirp/misc.c b/slirp/misc.c
index 1cd8749737..2c42fd15b0 100644
--- a/slirp/misc.c
+++ b/slirp/misc.c
@@ -94,10 +94,8 @@ getouraddr()
he = gethostbyname(buff);
if (he)
our_addr = *(struct in_addr *)he->h_addr;
- /* If the host doesn't have a useful IP address then use the
- guest side address. */
- if (our_addr.s_addr == 0 || our_addr.s_addr == loopback_addr.s_addr)
- our_addr.s_addr = special_addr.s_addr | htonl(CTL_ALIAS);
+ if (our_addr.s_addr == 0)
+ our_addr.s_addr = loopback_addr.s_addr;
}
#if SIZEOF_CHAR_P == 8