From dfea7b819b3827e349b8a601ec339fce257e2cc3 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 20 Mar 2016 14:52:32 +0100 Subject: slirp: send icmp6 errors when UDP send failed Signed-off-by: Samuel Thibault Reviewed-by: Thomas Huth --- udp6.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/udp6.c b/udp6.c index dcf588a..73ee3e8 100644 --- a/udp6.c +++ b/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; } -- cgit v1.1