diff options
author | Guillaume Subiron <maethor@subiron.org> | 2015-12-19 22:25:02 +0100 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2016-02-04 14:13:11 +0800 |
commit | 9b5a30dc41c7455a17c88ed1a3677ba5f937f31d (patch) | |
tree | 127bdbf9b99215c48fd6f4924cdea777f4a70921 /slirp/ip_icmp.c | |
parent | 8a87f121ca82fbb34877ec843dfc50b327baef9d (diff) | |
download | qemu-9b5a30dc41c7455a17c88ed1a3677ba5f937f31d.zip qemu-9b5a30dc41c7455a17c88ed1a3677ba5f937f31d.tar.gz qemu-9b5a30dc41c7455a17c88ed1a3677ba5f937f31d.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 'slirp/ip_icmp.c')
-rw-r--r-- | slirp/ip_icmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/ip_icmp.c b/slirp/ip_icmp.c index 3a29847..592f33a 100644 --- a/slirp/ip_icmp.c +++ b/slirp/ip_icmp.c @@ -162,7 +162,7 @@ icmp_input(struct mbuf *m, int hlen) if (icmp_send(so, m, hlen) == 0) { return; } - if(udp_attach(so) == -1) { + if (udp_attach(so, AF_INET) == -1) { DEBUG_MISC((dfd,"icmp_input udp_attach errno = %d-%s\n", errno,strerror(errno))); sofree(so); |