summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Heidelberg <david@ixit.cz>2016-09-12 13:38:40 +0200
committerGitHub <noreply@github.com>2016-09-12 13:38:40 +0200
commit79f1069e5ab90a9223f36e53ceb4f3fba06fd4e6 (patch)
treebfb2ee39c4918c4d1f8b7a7ebffbd0e55e13633a
parentc20a3a5ee3857d991a05501a48479dc73021fb50 (diff)
parent6702a95f2ea1a6a5b7c94437a87c1be6d0677733 (diff)
downloadiputils-79f1069e5ab90a9223f36e53ceb4f3fba06fd4e6.tar.gz
Merge pull request #65 from jsynacek/ping-eacces-fix
-rw-r--r--ping.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ping.c b/ping.c
index 43acc2f..2d9dc03 100644
--- a/ping.c
+++ b/ping.c
@@ -655,7 +655,8 @@ int ping4_run(int argc, char **argv, struct addrinfo *ai, socket_st *sock)
if (connect(probe_fd, (struct sockaddr*)&dst, sizeof(dst)) == -1) {
if (errno == EACCES) {
if (broadcast_pings == 0) {
- fprintf(stderr, "Do you want to ping broadcast? Then -b\n");
+ fprintf(stderr,
+ "Do you want to ping broadcast? Then -b. If not, check your local firewall rules.\n");
exit(2);
}
fprintf(stderr, "WARNING: pinging broadcast address\n");