aboutsummaryrefslogtreecommitdiff
path: root/slirp/udp.h
diff options
context:
space:
mode:
authorGuillaume Subiron <maethor@subiron.org>2015-12-19 22:25:02 +0100
committerJason Wang <jasowang@redhat.com>2016-02-04 14:13:11 +0800
commit9b5a30dc41c7455a17c88ed1a3677ba5f937f31d (patch)
tree127bdbf9b99215c48fd6f4924cdea777f4a70921 /slirp/udp.h
parent8a87f121ca82fbb34877ec843dfc50b327baef9d (diff)
slirp: Make udp_attach IPv6 compatible
A unsigned short is now passed in argument to udp_attach instead of using a hardcoded "AF_INET" to call 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/udp.h')
-rw-r--r--slirp/udp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/udp.h b/slirp/udp.h
index a04b8ce562..2f9de3886c 100644
--- a/slirp/udp.h
+++ b/slirp/udp.h
@@ -76,7 +76,7 @@ struct mbuf;
void udp_init(Slirp *);
void udp_cleanup(Slirp *);
void udp_input(register struct mbuf *, int);
-int udp_attach(struct socket *);
+int udp_attach(struct socket *, unsigned short af);
void udp_detach(struct socket *);
struct socket * udp_listen(Slirp *, uint32_t, u_int, uint32_t, u_int,
int);