mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
8a87f121ca
commit
9b5a30dc41
3 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue