From: Samuel Thibault Date: Sun, 20 Mar 2016 13:52:32 +0000 (+0100) Subject: slirp: send icmp6 errors when UDP send failed X-Git-Tag: TizenStudio_2.0_p2.4~27^2~6^2~8^2~87^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c17c07231e88549169689ffba811e53921e10025;p=sdk%2Femulator%2Fqemu.git slirp: send icmp6 errors when UDP send failed Signed-off-by: Samuel Thibault Reviewed-by: Thomas Huth --- diff --git a/slirp/udp6.c b/slirp/udp6.c index 60a91c9..a23026f 100644 --- a/slirp/udp6.c +++ b/slirp/udp6.c @@ -113,8 +113,7 @@ void udp6_input(struct mbuf *m) m->m_data -= iphlen; *ip = save_ip; DEBUG_MISC((dfd, "udp tx errno = %d-%s\n", errno, strerror(errno))); - /* TODO: ICMPv6 error */ - /*icmp_error(m, ICMP_UNREACH,ICMP_UNREACH_NET, 0,strerror(errno));*/ + icmp6_send_error(m, ICMP6_UNREACH, ICMP6_UNREACH_NO_ROUTE); goto bad; }