aboutsummaryrefslogtreecommitdiff
path: root/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
commitded25d73e3cd22e39b111a3fc79562ab6b3a5dc3 (patch)
treed86008f3fe0a26a975b7f7dc20ee97c3d6cc1001 /udp.h
parent1375f025941f059bea69900ebc285c3dcd1ab64a (diff)
downloadslirp-ded25d73e3cd22e39b111a3fc79562ab6b3a5dc3.zip
slirp-ded25d73e3cd22e39b111a3fc79562ab6b3a5dc3.tar.gz
slirp-ded25d73e3cd22e39b111a3fc79562ab6b3a5dc3.tar.bz2
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 'udp.h')
-rw-r--r--udp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/udp.h b/udp.h
index aea5a61..b525d44 100644
--- a/udp.h
+++ b/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);
int udp_output(struct socket *so, struct mbuf *m, struct sockaddr_in *saddr,