summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 02ef309)
raw | patch | inline | side by side (parent: 02ef309)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 16 Jul 2006 14:17:50 +0000 (16:17 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 16 Jul 2006 14:17:50 +0000 (16:17 +0200) |
src/liboping/liboping.c | patch | blob | history |
index debd432fd7f7793d7345858094c575aad0997c01..13bcc92088e58a35a7ed1dc96d6b1025b353bd7b 100644 (file)
--- a/src/liboping/liboping.c
+++ b/src/liboping/liboping.c
(struct sockaddr *) ph->addr, ph->addrlen);
if (ret < 0)
+ {
+#if defined(EHOSTUNREACH)
+ if (errno == EHOSTUNREACH)
+ return (0);
+#endif
+#if defined(ENETUNREACH)
+ if (errno == ENETUNREACH)
+ return (0);
+#endif
ping_set_error (obj, "sendto", strerror (errno));
+ }
return (ret);
}