summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.pp.se>2003-02-04 20:22:23 +0000
committerThomas Habets <thomas@habets.pp.se>2003-02-04 20:22:23 +0000
commitd60ec73f417727a32b7aa02d29391732bcf1c016 (patch)
treeee9480567893e7c408b1b90bcec55a6e9766fa2d
parent74947071f5fd4f3e45f637408f22b70b43f99f20 (diff)
downloadarping-d60ec73f417727a32b7aa02d29391732bcf1c016.tar.gz
crash fix and doc updates
-rw-r--r--README5
-rw-r--r--arping.89
-rw-r--r--arping.c7
-rw-r--r--arping.yodl9
4 files changed, 18 insertions, 12 deletions
diff --git a/README b/README
index e012d89..ab1e086 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-$Id: README 738 2002-11-03 19:58:21Z marvin $
+$Id: README 793 2003-02-04 20:22:23Z marvin $
ARP Ping
@@ -188,8 +188,7 @@ A: Ah, I see. A broadcast was changed to unicast, I don't know why I set it to
... Or you can run arping -s ff:ff:ff:ff:ff:ff <host>.
If this fixes it please LET ME KNOW.
---
-Q: Hey! Wasn't this Marvins program? (marvin@rootbusters.net, that is)
- You thief!
+Q: Hey! Wasn't this Marvins program? You thief!
A: We are the same person.
---
diff --git a/arping.8 b/arping.8
index d11b1c5..8cf6d94 100644
--- a/arping.8
+++ b/arping.8
@@ -1,4 +1,4 @@
-.TH "arping" "8" "12th Feb, 2002" "arping" ""
+.TH "arping" "8" "4th Feb, 2003" "arping" ""
.PP
.SH "NAME"
arping \- sends arp and/or ip pings to a given host
@@ -11,6 +11,10 @@ The \fIarping\fP utility sends \fBARP\fP and/or \fBICMP\fP requests to the speci
.PP
One request is sent each second\&.
.PP
+When pinging an IP an ARP who-has query is sent\&. When pinging a MAC
+address a directed broadcast ICMP Echo request is sent\&. For more
+technical explaination, see the README file\&.
+.PP
\fIImportant note on timing\fP
.PP
ARP packets are usually replied to (on a LAN) so fast that the OS task
@@ -92,5 +96,4 @@ instead of -S 255\&.255\&.255\&.255\&. This is libnets fault\&.
.PP
.SH "AUTHOR"
.PP
-Arping was written by Thomas Habets <thomas@habets\&.pp\&.se> aka
-<marvin@rootbusters\&.net>
+Arping was written by Thomas Habets <thomas@habets\&.pp\&.se>\&.
diff --git a/arping.c b/arping.c
index b2378ae..ce6b573 100644
--- a/arping.c
+++ b/arping.c
@@ -12,7 +12,7 @@
*
* Also finds out IP of specified MAC
*
- * $Id: arping.c 737 2002-11-03 19:47:58Z marvin $
+ * $Id: arping.c 793 2003-02-04 20:22:23Z marvin $
*/
/*
* Copyright (C) 2000-2002 Thomas Habets <thomas@habets.pp.se>
@@ -78,7 +78,7 @@
#define DEBUG(a)
#endif
-const float version = 1.05;
+const float version = 1.06;
struct ether_addr *mymac;
static u_char eth_xmas[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
@@ -488,7 +488,8 @@ int main(int argc, char **argv)
}
if (!searchmac && !dip && (optind + 1 != argc)) {
usage(1);
- exit(1);
+ } else if (searchmac && (optind + 1 != argc)) {
+ usage(1);
}
if (getuid() && geteuid()) {
fprintf(stderr, "arping: must run as root\n");
diff --git a/arping.yodl b/arping.yodl
index ae812ca..ecd7b2b 100644
--- a/arping.yodl
+++ b/arping.yodl
@@ -1,4 +1,4 @@
-manpage(arping)(8)(12th Feb, 2002)(arping)()
+manpage(arping)(8)(4th Feb, 2003)(arping)()
manpagename(arping)(sends arp and/or ip pings to a given host)
@@ -11,6 +11,10 @@ manpagedescription()
One request is sent each second.
+ When pinging an IP an ARP who-has query is sent. When pinging a MAC
+ address a directed broadcast ICMP Echo request is sent. For more
+ technical explaination, see the README file.
+
em(Important note on timing)
ARP packets are usually replied to (on a LAN) so fast that the OS task
@@ -78,5 +82,4 @@ manpageseealso()
manpageauthor()
- Arping was written by Thomas Habets <thomas@habets.pp.se> aka
-<marvin@rootbusters.net>
+ Arping was written by Thomas Habets <thomas@habets.pp.se>.