Skip to content

Commit

Permalink
slirp: send icmp6 errors when UDP send failed
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
  • Loading branch information
sthibaul committed Mar 22, 2016
1 parent 99787f6 commit c17c072
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions slirp/udp6.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit c17c072

Please sign in to comment.