summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.pp.se>2002-08-19 23:28:46 +0000
committerThomas Habets <thomas@habets.pp.se>2002-08-19 23:28:46 +0000
commit419929f5a6dcda5b04e64c1c97d5fa1d75314317 (patch)
treeb67f91c3eb5d6476b3968c74545f6516fcfcf0ac
parent3d82741d65635405326c091f54f088afafc3eaef (diff)
downloadarping-419929f5a6dcda5b04e64c1c97d5fa1d75314317.tar.gz
.
-rw-r--r--README7
-rw-r--r--arping.c5
2 files changed, 9 insertions, 3 deletions
diff --git a/README b/README
index d025a26..aa0fdd7 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-$Id: README 616 2002-05-05 19:47:27Z marvin $
+$Id: README 699 2002-08-19 23:28:46Z marvin $
ARP Ping
@@ -181,6 +181,11 @@ Misc
There, I added the stupid roundtrip time feature. Now I dare you to think of
any other applicable features. (IPv4 only, for now)
+Ok, two more were thought of. Both of which are non-trivially-portable.
+1) Automatically select interface depending on IP address pinged.
+2) Don't use SIGARLM. Non-trivial because you can't (AFAIK) select() on a pcap-
+ opened device.
+
License
-------
It's GPL, see the LICENSE file.
diff --git a/arping.c b/arping.c
index c9b5358..3cb9c37 100644
--- a/arping.c
+++ b/arping.c
@@ -12,7 +12,7 @@
*
* Also finds out IP of specified MAC
*
- * $Id: arping.c 697 2002-08-19 13:26:52Z marvin $
+ * $Id: arping.c 699 2002-08-19 23:28:46Z marvin $
*/
/*
* Copyright (C) 2000-2002 Thomas Habets <thomas@habets.pp.se>
@@ -197,6 +197,7 @@ static void alasend(int i)
exit(1);
}
alarm(1);
+ DEBUG(fprintf(stderr, "Resetting timer\n"));
#if SOLARIS
signal(SIGALRM, alasend);
#endif
@@ -353,7 +354,7 @@ static void recvpackets(void)
fprintf(stderr, "pcap_loop(): error\n");
exit(1);
}
- DEBUG(printf("}recvpackets()\n"));
+ // does not return
}
int main(int argc, char **argv)