diff options
author | Yann Bordenave <meow@meowstars.org> | 2016-03-15 10:31:19 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-03-15 10:35:02 +0100 |
commit | de40abfecfe17f79870a66acfc1f87a53fc066ca (patch) | |
tree | 60f52f09ae1b597eddf3d31dd8c028752275d2ce /slirp/udp.c | |
parent | 0d6ff71ae3c7ac3a446d295ef71884a05093b37c (diff) |
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/udp.c')
-rw-r--r-- | slirp/udp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/slirp/udp.c b/slirp/udp.c index 6b39cab0c6..be012fbfe1 100644 --- a/slirp/udp.c +++ b/slirp/udp.c @@ -209,7 +209,8 @@ udp_input(register struct mbuf *m, int iphlen) m->m_data -= iphlen; *ip=save_ip; DEBUG_MISC((dfd,"udp tx errno = %d-%s\n",errno,strerror(errno))); - icmp_error(m, ICMP_UNREACH,ICMP_UNREACH_NET, 0,strerror(errno)); + icmp_send_error(m, ICMP_UNREACH, ICMP_UNREACH_NET, 0, + strerror(errno)); goto bad; } |