summaryrefslogtreecommitdiff
path: root/slirp/tcp_input.c
diff options
context:
space:
mode:
authorGuillaume Subiron <maethor@subiron.org>2015-12-19 22:25:03 +0100
committerJason Wang <jasowang@redhat.com>2016-02-04 14:13:11 +0800
commitcc573a6924da3f487410c27e2dc0e2aeeeb55b06 (patch)
tree9160dc0a7c22e1fa5887db99cacafd4d048101c1 /slirp/tcp_input.c
parent9b5a30dc41c7455a17c88ed1a3677ba5f937f31d (diff)
slirp: Adding family argument to tcp_fconnect()
This patch simply adds a unsigned short family argument to remove the hardcoded "AF_INET" in the call of qemu_socket(). This prepares for IPv6 support. Signed-off-by: Guillaume Subiron <maethor@subiron.org> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'slirp/tcp_input.c')
-rw-r--r--slirp/tcp_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/tcp_input.c b/slirp/tcp_input.c
index 5e2773c955..f24e7060a4 100644
--- a/slirp/tcp_input.c
+++ b/slirp/tcp_input.c
@@ -584,7 +584,7 @@ findso:
goto cont_input;
}
- if ((tcp_fconnect(so) == -1) &&
+ if ((tcp_fconnect(so, so->so_ffamily) == -1) &&
#if defined(_WIN32)
socket_error() != WSAEWOULDBLOCK
#else