aboutsummaryrefslogtreecommitdiff
path: root/tcp_subr.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
commit299cfa9449aa90a2ac9639a583ec4b13cba1a85a (patch)
tree477f3f9ef4db9f587c28097fa8c578181678a323 /tcp_subr.c
parenteacc9a9a94dba8540c4d126a27fd0b229521a9f5 (diff)
downloadslirp-299cfa9449aa90a2ac9639a583ec4b13cba1a85a.zip
slirp-299cfa9449aa90a2ac9639a583ec4b13cba1a85a.tar.gz
slirp-299cfa9449aa90a2ac9639a583ec4b13cba1a85a.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 'tcp_subr.c')
-rw-r--r--tcp_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcp_subr.c b/tcp_subr.c
index 32f1d94..91df6b6 100644
--- a/tcp_subr.c
+++ b/tcp_subr.c
@@ -493,7 +493,7 @@ void tcp_connect(inso) struct socket *inso;
so->so_faddr = addr.sin_addr;
/* Translate connections from localhost to the real hostname */
if (so->so_faddr.s_addr == 0 || so->so_faddr.s_addr == loopback_addr.s_addr)
- so->so_faddr = our_addr;
+ so->so_faddr = alias_addr;
/* Close the accept() socket, set right state */
if (inso->so_state & SS_FACCEPTONCE) {
@@ -826,7 +826,7 @@ struct mbuf *m;
if (ns->so_faddr.s_addr == 0 ||
ns->so_faddr.s_addr == loopback_addr.s_addr)
- ns->so_faddr = our_addr;
+ ns->so_faddr = alias_addr;
ns->so_iptos = tcp_tos(ns);
tp = sototcpcb(ns);