summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.pp.se>2009-11-06 15:46:44 +0100
committerThomas Habets <thomas@habets.pp.se>2009-11-06 15:46:44 +0100
commit707dfa52bef57ded9921feb6cad1dd2088a19c1b (patch)
tree37198b4e810853ab659d753d90089ac3ca8d692b
parent6315268ef341a98034251ae66f5fa43e92ac61e7 (diff)
downloadarping-707dfa52bef57ded9921feb6cad1dd2088a19c1b.tar.gz
Document what -d does
-rw-r--r--doc/arping.83
-rw-r--r--doc/arping.yodl3
-rw-r--r--src/arping.c4
3 files changed, 7 insertions, 3 deletions
diff --git a/doc/arping.8 b/doc/arping.8
index 72b38a5..b917e8a 100644
--- a/doc/arping.8
+++ b/doc/arping.8
@@ -60,7 +60,8 @@ Use instead of host if you want to address 255\&.255\&.255\&.255\&.
.IP "-c \fIcount\fP"
Only send \fIcount\fP requests\&.
.IP "-d"
-Find duplicate replies\&.
+Find duplicate replies\&. Exit with 1 if there are answers from
+two different MAC addresses\&.
.IP "-D"
Display answers as dots and missing packets as exclamation points\&.
Like flood ping on a Cisco\&.
diff --git a/doc/arping.yodl b/doc/arping.yodl
index d2ead76..365dd4a 100644
--- a/doc/arping.yodl
+++ b/doc/arping.yodl
@@ -51,7 +51,8 @@ Note that this may get the arping unanswered since it's not normal behavior
for a host.
dit(-B) Use instead of host if you want to address 255.255.255.255.
dit(-c em(count)) Only send em(count) requests.
- dit(-d) Find duplicate replies.
+ dit(-d) Find duplicate replies. Exit with 1 if there are answers from
+ two different MAC addresses.
dit(-D) Display answers as dots and missing packets as exclamation points.
Like flood ping on a Cisco.
dit(-F) Don't try to be smart about the interface name. Even if this
diff --git a/src/arping.c b/src/arping.c
index 0e3dcfb..a51f5ab 100644
--- a/src/arping.c
+++ b/src/arping.c
@@ -253,7 +253,9 @@ extended_usage()
" -B Use instead of host if you want to address 255.255.255.255.\n"
" -c count\n"
" Only send count requests.\n"
- " -d Find duplicate replies.\n"
+ " -d Find duplicate replies. Exit with 1 if there are "
+ "answers from\n"
+ " two different MAC addresses.\n"
" -D Display answers as dots and missing packets as exclamation points.\n"
" -F Don't try to be smart about the interface name. (even if this\n"
" switch is not given, -i overrides smartness)\n"