diff options
author | Thomas Habets <thomas@habets.pp.se> | 2003-06-21 16:42:02 +0000 |
---|---|---|
committer | Thomas Habets <thomas@habets.pp.se> | 2003-06-21 16:42:02 +0000 |
commit | 82cbd2d5aab7963f6709e0865bb18af6597177a7 (patch) | |
tree | 7384ee292c1c4f93deb4e1d8e1737ccfe76a7973 | |
parent | f4fb555e55c4c4ee70e3edfe567f4ef9fc89daca (diff) | |
download | arping-82cbd2d5aab7963f6709e0865bb18af6597177a7.tar.gz |
.
-rw-r--r-- | Makefile | 22 | ||||
-rw-r--r-- | arping.c | 6 |
2 files changed, 18 insertions, 10 deletions
@@ -1,4 +1,4 @@ -# $Id: Makefile 924 2003-06-21 16:36:14Z marvin $ +# $Id: Makefile 925 2003-06-21 16:42:02Z marvin $ TARGETS=arping USE_NETIF=0 @@ -13,23 +13,31 @@ CC=gcc # explicit pcap include dir is for redhat which is fux0red CFLAGS=-g -I/usr/local/include -L/usr/local/lib -DFINDIF=$(FINDIF) -DUSE_NETIF=$(USE_NETIF) -DOPENBSD=$(OPENBSD) -DLINUX=$(LINUX) -DSOLARIS=$(SOLARIS) -DFREEBSD=$(FREEBSD) -DMACOSX=$(MACOSX) -I/usr/include/pcap -all: arping2 +all: message arping2 -arping1-usage: +message: + @echo "" + @echo "Will now try to compile arping 2.x. If you have Libnet 1.0.x" + @echo "(as opposed to 1.1.x) then this will fail and you should try" + @echo "compiling arping 1.x." + @echo "" + @echo "For information on how to compile arping 1.x, type " + @echo "'make arping1'" + @echo "" + sleep 3 + +arping1: @echo @echo "usage: make [ target ]" @echo "Target can be one of: " @echo "freebsd, openbsd, netbsd, linux, solaris or macosx" @echo - @echo "Make doc will re-create the manpage" - @echo "You may use make install after" - @echo @echo "Important note!" @echo @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 arping2 by typing 'make'" + @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 @@ -12,7 +12,7 @@ * * Also finds out IP of specified MAC * - * $Id: arping.c 922 2003-06-21 16:26:53Z marvin $ + * $Id: arping.c 925 2003-06-21 16:42:02Z marvin $ */ /* * Copyright (C) 2000-2003 Thomas Habets <thomas@habets.pp.se> @@ -240,8 +240,8 @@ static void usage(int ret) { printf("ARPing %1.2f, by Thomas Habets <thomas@habets.pp.se>\n", version); - printf("usage: arping [ -qvrRd0bpAa ] [ -S <host/ip> ] [ -T <host/ip ]" - " [ -s <MAC> ]\n" + printf("usage: arping [ -0aAbdFpqrRv ] [ -S <host/ip> ] " + "[ -T <host/ip ] [ -s <MAC> ]\n" " [ -t <MAC> ] [ -c <count> ] [ -i <interface> ] " "<host/ip/MAC | -B>\n"); exit(ret); |