summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.pp.se>2003-08-07 20:11:36 +0000
committerThomas Habets <thomas@habets.pp.se>2003-08-07 20:11:36 +0000
commita4dcdaf6aa81579ea7b4df0872b982cd0db1ec96 (patch)
tree7a9964894e63499909c70a47fa35de40c3869f34
parent59bbd37f4f163bec6d8e74bfee6597354c360e92 (diff)
downloadarping-a4dcdaf6aa81579ea7b4df0872b982cd0db1ec96.tar.gz
.
-rw-r--r--Makefile14
-rw-r--r--README10
-rwxr-xr-xarping-scan-net.sh9
-rw-r--r--arping.c8
4 files changed, 29 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index bcb34e5..266518d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile 925 2003-06-21 16:42:02Z marvin $
+# $Id: Makefile 984 2003-08-07 20:11:36Z marvin $
TARGETS=arping
USE_NETIF=0
@@ -21,6 +21,11 @@ message:
@echo "(as opposed to 1.1.x) then this will fail and you should try"
@echo "compiling arping 1.x."
@echo ""
+ @echo "Note that arping 1.x has been tested *A LOT* more than "
+ @echo "arping 2.x, so if you have problems (especially compilation"
+ @echo "problems), then try arping 1.x with libnet 1.0.x. Also, mail"
+ @echo "me about it. thomas@habets.pp.se"
+ @echo ""
@echo "For information on how to compile arping 1.x, type "
@echo "'make arping1'"
@echo ""
@@ -37,9 +42,10 @@ arping1:
@echo " Arping 1.x will only work with libnet 1.0.x, not 1.1.x"
@echo " BUT, arping 2.x will work with 1.1.x."
@echo
- @echo " Create the arping 2.x by typing 'make'"
- @echo " Arping 2.x has been known to work on linux, I'm still "
- @echo " working on BSD and other support."
+ @echo " Create arping 2.x by typing 'make'"
+ @echo " Arping 2.x has been known to work most architectures"
+ @echo " that arping 1.x works on, but arping 1.x has been tested"
+ @echo " more"
@echo
@echo " Read README for more details."
@echo
diff --git a/README b/README
index 965e609..509ca0a 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-$Id: README 922 2003-06-21 16:26:53Z marvin $
+$Id: README 984 2003-08-07 20:11:36Z marvin $
ARP Ping
@@ -40,7 +40,12 @@ If you have some other OS, try all before mailing me.
'make install' will copy arping to /usr/local/bin, and put the manpage where
it belongs.
-
+
+Mailing list
+------------
+Check out http://www.habets.pp.se/synscan/mailinglists.php for information
+on how to subscribe to help- and announce-lists.
+
How it does it
--------------
See 'Technical' at the bottom of this file.
@@ -60,7 +65,6 @@ A: Arping 2.x will not work with Libnet 1.0.x. This is This is due to
Arping 2.x is now the default target, but arping 1.x is still here.
Arping 1.x is included in this release and can be created
with "make arping1" and follow instructions.
-
---
Q: After compiling arping without any problem, i test it first with
localhost... but it doesn't respond. Isn't that strange?
diff --git a/arping-scan-net.sh b/arping-scan-net.sh
index 919b421..a117221 100755
--- a/arping-scan-net.sh
+++ b/arping-scan-net.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: arping-scan-net.sh 975 2003-08-03 23:06:58Z marvin $
+# $Id: arping-scan-net.sh 984 2003-08-07 20:11:36Z marvin $
#
# Copyright (C) 2002 Thomas Habets <thomas@habets.pp.se>
#
@@ -30,7 +30,8 @@ if [ "$1" = "" ]; then
fi
TARGET_MAC="$1"
-# seq doesnt exist on some boxen
+# seq doesnt exist on some retarded boxen, comment out if your box is too
+# stupid to have bc and/or tr
seq() { echo "for (i=$1; i<=$2; i++) i;" | bc | tr "\012" " "; }
#
@@ -43,9 +44,9 @@ seq() { echo "for (i=$1; i<=$2; i++) i;" | bc | tr "\012" " "; }
#
for a in $(seq 192 192); do
for b in $(seq 168 168); do
- for c in $(seq 42 42); do
+ for c in $(seq 0 0); do
for d in $(seq 0 255); do
- sh -c "./arping -A -q -c 1 -T $a.$b.$c.$d $TARGET_MAC
+ sh -c "arping -A -q -c 1 -T $a.$b.$c.$d $TARGET_MAC
if [ \$? = 0 ]; then
echo Got answer with address: $a.$b.$c.$d
fi" &
diff --git a/arping.c b/arping.c
index 3d44f73..0b790c1 100644
--- a/arping.c
+++ b/arping.c
@@ -1,4 +1,10 @@
/*
+ * NOTE: This is arping 1.x, arping 2.x is in arping-2/
+ */
+
+
+
+/*
* arping
*
* By Thomas Habets <thomas@habets.pp.se>
@@ -12,7 +18,7 @@
*
* Also finds out IP of specified MAC
*
- * $Id: arping.c 975 2003-08-03 23:06:58Z marvin $
+ * $Id: arping.c 984 2003-08-07 20:11:36Z marvin $
*/
/*
* Copyright (C) 2000-2003 Thomas Habets <thomas@habets.pp.se>