summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2016-09-09 14:42:49 +0200
committerJan Synacek <jsynacek@redhat.com>2016-09-09 14:44:14 +0200
commitcbf61e1588048fe655b8228407fbb10973da7b5f (patch)
tree1e066e2278ac05bdcf416a5bee99c81931d74316
parent911cb11a8108f35b732d3affd4df33eacb1429f5 (diff)
downloadiputils-cbf61e1588048fe655b8228407fbb10973da7b5f.tar.gz
arping,doc: fix documentation of -I
Also, give a less misleading error when a device cannot be automatically determined and has to be specified by the user using the -I option.
-rw-r--r--arping.c2
-rw-r--r--doc/arping.sgml2
2 files changed, 2 insertions, 2 deletions
diff --git a/arping.c b/arping.c
index b2b543a..1a3f40b 100644
--- a/arping.c
+++ b/arping.c
@@ -1086,7 +1086,7 @@ main(int argc, char **argv)
fprintf(stderr, "arping: Device %s not available.\n", device.name);
exit(2);
}
- fprintf(stderr, "arping: device (option -I) is required.\n");
+ fprintf(stderr, "arping: Suitable device could not be determined. Please, use option -I.\n");
usage();
}
diff --git a/doc/arping.sgml b/doc/arping.sgml
index d89b898..b23aaac 100644
--- a/doc/arping.sgml
+++ b/doc/arping.sgml
@@ -19,7 +19,7 @@
<arg choice="opt">-c <replaceable/count/</arg>
<arg choice="opt">-w <replaceable/deadline/</arg>
<arg choice="opt">-s <replaceable/source/</arg>
-<arg choice="req">-I <replaceable/interface/</arg>
+<arg choice="opt">-I <replaceable/interface/</arg>
<arg choice="req"><replaceable/destination/</arg>
</cmdsynopsis>
</refsynopsisdiv>