[Slirp] [Git][slirp/libslirp][master] icmp: Document the use of UDP echo service
Samuel Thibault (@sthibaul)
gitlab at gitlab.freedesktop.org
Sun Jun 6 22:04:57 UTC 2021
Samuel Thibault pushed to branch master at slirp / libslirp
Commits:
3704690e by Samuel Thibault at 2021-06-07T00:04:25+02:00
icmp: Document the use of UDP echo service
Signed-off-by: Samuel Thibault <samuel.thibault at ens-lyon.org>
- - - - -
1 changed file:
- src/ip_icmp.c
Changes:
=====================================
src/ip_icmp.c
=====================================
@@ -185,8 +185,13 @@ void icmp_input(struct mbuf *m, int hlen)
so = socreate(slirp);
if (icmp_send(so, m, hlen) == 0) {
+ /* We could send this as ICMP, good! */
return;
}
+
+ /* We could not send this as ICMP, try to send it on UDP echo
+ * service (7), wishfully hoping that it is open there. */
+
if (udp_attach(so, AF_INET) == -1) {
DEBUG_MISC("icmp_input udp_attach errno = %d-%s", errno,
strerror(errno));
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/3704690e191df79818a38da964cb673a802b8e9e
--
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/3704690e191df79818a38da964cb673a802b8e9e
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20210606/d950c50d/attachment-0001.htm>
More information about the Slirp
mailing list