diff options
author | Thomas Habets <thomas@habets.pp.se> | 2002-11-03 19:58:21 +0000 |
---|---|---|
committer | Thomas Habets <thomas@habets.pp.se> | 2002-11-03 19:58:21 +0000 |
commit | 74947071f5fd4f3e45f637408f22b70b43f99f20 (patch) | |
tree | e38000cb1ded090c6acd32d34612ef78afb410fc | |
parent | a524fe5e882c62e343b15248d5622c0ade8ad472 (diff) | |
download | arping-74947071f5fd4f3e45f637408f22b70b43f99f20.tar.gz |
.
-rw-r--r-- | README | 8 | ||||
-rw-r--r-- | arping-2/arping.c | 8 |
2 files changed, 9 insertions, 7 deletions
@@ -1,4 +1,4 @@ -$Id: README 737 2002-11-03 19:47:58Z marvin $ +$Id: README 738 2002-11-03 19:58:21Z marvin $ ARP Ping @@ -170,7 +170,7 @@ A: Be my guest, but if care about security *at all* you will have to restrict ordinary users have absolutely no business generating. For example, I don't protect against an ALRM signal flood, which will result - in a packet flood. + in a packet flood. (arping 2.x doesn't have this issue) If you are honestly debugging the network then I don't see why you aren't root already. @@ -201,13 +201,15 @@ A: Will do. Misc ---- There, I added the stupid roundtrip time feature. Now I dare you to think of -any other applicable features. (IPv4 only, for now) +any other applicable features. (IPv4 only, for now and probably forever) 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. +Arping 2.x solves the second one. Still working on the first. + License ------- It's GPL, see the LICENSE file. diff --git a/arping-2/arping.c b/arping-2/arping.c index 1699c5c..29e5a05 100644 --- a/arping-2/arping.c +++ b/arping-2/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 738 2002-11-03 19:58:21Z marvin $ */ /* * Copyright (C) 2000-2002 Thomas Habets <thomas@habets.pp.se> @@ -76,7 +76,7 @@ static u_int32_t srcip,dstip; static int beep = 0; static int verbose = 0; -static int pingmac = 0; +/*static int pingmac = 0; */ static int finddup = 0; static unsigned int numsent = 0; static unsigned int numrecvd = 0; @@ -379,7 +379,7 @@ static void pingmac_recv(const char *unused, struct pcap_pkthdr *h, && ((!memcmp(heth->_802_3_shost, dstmac,ETH_ALEN) || !memcmp(dstmac, ethxmas, ETH_ALEN))) && !memcmp(heth->_802_3_dhost, srcmac, ETH_ALEN)) { - u_int8_t *cp = heth->_802_3_shost; +/* u_int8_t *cp = heth->_802_3_shost; */ switch(display) { case QUIET: break; @@ -522,7 +522,7 @@ int main(int argc, char **argv) { char ebuf[LIBNET_ERRBUF_SIZE]; char *cp; - int nullip = 0; +/* int nullip = 0;*/ int promisc = 0; int srcip_given = 0; int srcmac_given = 0; |