diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-05-03 19:58:17 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-05-03 19:58:17 +0000 |
commit | 299cfa9449aa90a2ac9639a583ec4b13cba1a85a (patch) | |
tree | 477f3f9ef4db9f587c28097fa8c578181678a323 /misc.c | |
parent | eacc9a9a94dba8540c4d126a27fd0b229521a9f5 (diff) | |
download | slirp-release_0_8_1.zip slirp-release_0_8_1.tar.gz slirp-release_0_8_1.tar.bz2 |
separate alias_addr (10.0.2.2) from our_addr (Ed Swierk)v0.8.1release_0_8_1
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1895 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -91,10 +91,8 @@ void 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 |