diff options
| author | Guillaume Subiron <maethor@subiron.org> | 2015-12-19 22:25:03 +0100 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2016-02-04 14:13:11 +0800 |
| commit | cc573a6924da3f487410c27e2dc0e2aeeeb55b06 (patch) | |
| tree | 9160dc0a7c22e1fa5887db99cacafd4d048101c1 /slirp/slirp.h | |
| parent | 9b5a30dc41c7455a17c88ed1a3677ba5f937f31d (diff) | |
| download | focaccia-qemu-cc573a6924da3f487410c27e2dc0e2aeeeb55b06.tar.gz focaccia-qemu-cc573a6924da3f487410c27e2dc0e2aeeeb55b06.zip | |
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/slirp.h')
| -rw-r--r-- | slirp/slirp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/slirp.h b/slirp/slirp.h index ec0a4c2415..239fe2917a 100644 --- a/slirp/slirp.h +++ b/slirp/slirp.h @@ -327,7 +327,7 @@ void tcp_respond(struct tcpcb *, register struct tcpiphdr *, register struct mbu struct tcpcb * tcp_newtcpcb(struct socket *); struct tcpcb * tcp_close(register struct tcpcb *); void tcp_sockclosed(struct tcpcb *); -int tcp_fconnect(struct socket *); +int tcp_fconnect(struct socket *, unsigned short af); void tcp_connect(struct socket *); int tcp_attach(struct socket *); uint8_t tcp_tos(struct socket *); |