diff options
author | Thomas Habets <thomas@habets.pp.se> | 2002-08-19 23:28:46 +0000 |
---|---|---|
committer | Thomas Habets <thomas@habets.pp.se> | 2002-08-19 23:28:46 +0000 |
commit | 419929f5a6dcda5b04e64c1c97d5fa1d75314317 (patch) | |
tree | b67f91c3eb5d6476b3968c74545f6516fcfcf0ac | |
parent | 3d82741d65635405326c091f54f088afafc3eaef (diff) | |
download | arping-419929f5a6dcda5b04e64c1c97d5fa1d75314317.tar.gz |
.
-rw-r--r-- | README | 7 | ||||
-rw-r--r-- | arping.c | 5 |
2 files changed, 9 insertions, 3 deletions
@@ -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. @@ -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) |