diff options
author | 2016-03-15 10:31:19 +0100 | |
---|---|---|
committer | 2016-03-15 10:35:02 +0100 | |
commit | de40abfecfe17f79870a66acfc1f87a53fc066ca (patch) | |
tree | 60f52f09ae1b597eddf3d31dd8c028752275d2ce /slirp/tcp_input.c | |
parent | slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration (diff) | |
download | qemu-de40abfecfe17f79870a66acfc1f87a53fc066ca.tar.xz qemu-de40abfecfe17f79870a66acfc1f87a53fc066ca.zip |
slirp: Fix ICMP error sending
Disambiguation : icmp_error is renamed into icmp_send_error, since it
doesn't manage errors, but only sends ICMP Error messages.
Signed-off-by: Yann Bordenave <meow@meowstars.org>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'slirp/tcp_input.c')
-rw-r--r-- | slirp/tcp_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/tcp_input.c b/slirp/tcp_input.c index 03be56eaab..117a66efbd 100644 --- a/slirp/tcp_input.c +++ b/slirp/tcp_input.c @@ -604,7 +604,7 @@ findso: m->m_data -= sizeof(struct tcpiphdr)+off-sizeof(struct tcphdr); m->m_len += sizeof(struct tcpiphdr)+off-sizeof(struct tcphdr); *ip=save_ip; - icmp_error(m, ICMP_UNREACH,code, 0,strerror(errno)); + icmp_send_error(m, ICMP_UNREACH, code, 0, strerror(errno)); } tcp_close(tp); m_free(m); |