diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-03-20 14:52:32 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-03-22 22:52:09 +0100 |
commit | c17c07231e88549169689ffba811e53921e10025 (patch) | |
tree | 0a9c82e4530ad708d5a059c6550b660f7b561682 /slirp | |
parent | 99787f69cdd8147d0be67d71ec3058cce21e2444 (diff) |
slirp: send icmp6 errors when UDP send failed
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'slirp')
-rw-r--r-- | slirp/udp6.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/slirp/udp6.c b/slirp/udp6.c index 60a91c9532..a23026f2e4 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; } |