summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.pp.se>2003-08-03 23:06:58 +0000
committerThomas Habets <thomas@habets.pp.se>2003-08-03 23:06:58 +0000
commit59bbd37f4f163bec6d8e74bfee6597354c360e92 (patch)
treeee6a890d6d9db38165c560fcba45ff980d9f49a4
parent6c10760e09012f5b5f103926c33c61a798bbcc4a (diff)
downloadarping-59bbd37f4f163bec6d8e74bfee6597354c360e92.tar.gz
.
-rwxr-xr-xarping-scan-net.sh4
-rw-r--r--arping.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/arping-scan-net.sh b/arping-scan-net.sh
index d88e5d1..919b421 100755
--- a/arping-scan-net.sh
+++ b/arping-scan-net.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: arping-scan-net.sh 974 2003-08-03 22:57:59Z marvin $
+# $Id: arping-scan-net.sh 975 2003-08-03 23:06:58Z marvin $
#
# Copyright (C) 2002 Thomas Habets <thomas@habets.pp.se>
#
@@ -45,7 +45,7 @@ for a in $(seq 192 192); do
for b in $(seq 168 168); do
for c in $(seq 42 42); 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 891556b..3d44f73 100644
--- a/arping.c
+++ b/arping.c
@@ -12,7 +12,7 @@
*
* Also finds out IP of specified MAC
*
- * $Id: arping.c 974 2003-08-03 22:57:59Z marvin $
+ * $Id: arping.c 975 2003-08-03 23:06:58Z marvin $
*/
/*
* Copyright (C) 2000-2003 Thomas Habets <thomas@habets.pp.se>
@@ -46,6 +46,7 @@
* arping -t mac -A host pongs
* arping -T ip -A mac pongs
* arping -T ip -A cmac pongs
+ * arping -T bcast mac pongs # bcast of current net
* arping -r host mac
* arping -R host ip
* arping -r mac ip