From 75b5cdd16d471a0ec2d2b15d6e475b850340e0d6 Mon Sep 17 00:00:00 2001 From: Thomas Habets Date: Sat, 23 Nov 2019 18:33:43 +0000 Subject: [PATCH] Clarify that libnet 1.1 and newer is OK, not just 1.1.x --- INSTALL | 10 +++++----- README | 16 ++++------------ configure.ac | 2 +- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/INSTALL b/INSTALL index 8313c62b..ce793854 100644 --- a/INSTALL +++ b/INSTALL @@ -4,8 +4,8 @@ This is the short version. For more info see the README. Dependencies ------------ -libnet 1.1.x - https://github.com/sam-github/libnet +libnet 1.1 or newer + https://github.com/libnet/libnet or http://ftp.debian.org/debian/pool/main/libn/libnet/libnet_1.1.2.1.orig.tar.gz Note: Libnet 1.1.5 or later needed for Linux capability support. @@ -29,9 +29,9 @@ to add stuff to the configure line, like: Installing, longer version -------------------------- -Note that arping 2.x requires libnet 1.1.x to work. It will NOT work with -libnet 1.0.x. Arping 1.x works with libnet 1.0.x, but it's not included in the -same package anymore. +Note that arping 2.x requires libnet 1.1 or newer to work. It will NOT +work with libnet 1.0.x. Arping 1.x works with libnet 1.0.x, but it's +not included in the same package anymore. Standard autotools: ./configure && make && make install diff --git a/README b/README index 6a3e144b..c4a24da2 100644 --- a/README +++ b/README @@ -122,20 +122,12 @@ A: -T allows you to restrict the arping to a limited subnet, which --- Q: ./configure says I need libnet and/or libpcap -A: Arping depends on libnet 1.1.x and libpcap, get libnet at: - http://packetfactory.openwall.net/projects/libnet/ - and libpcap from http://www.tcpdump.org. +A: Arping depends on libnet 1.1 or newer, and libpcap. Get libnet from + https://github.com/libnet/libnet and libpcap from http://www.tcpdump.org. Or more likely they were both included in your Linux distribution. - Lately www.packetfactory.net seems to be down, so you can get the original - tarball from the Debian archives: - http://ftp.debian.org/debian/pool/main/libn/libnet/libnet_1.1.4.orig.tar.gz - If that exact file doesn't exist there probably is one with a higher - version number. - - Or github.com: - http://github.com/sam-github/libnet - http://github.com/ThomasHabets/libnet + The original libnet site + was http://packetfactory.openwall.net/projects/libnet/, but is not updated. --- Q: I get bus error on my non-x86 box diff --git a/configure.ac b/configure.ac index 2e3a83fc..03ed4cb0 100644 --- a/configure.ac +++ b/configure.ac @@ -28,7 +28,7 @@ AC_CHECK_LIB([nsl], [gethostbyname]) AC_CHECK_LIB([cap], [cap_init]) AC_CHECK_LIB([rt], [clock_gettime]) AC_CHECK_LIB([net], [libnet_name_resolve], - [AC_MSG_ERROR([libnet 1.0.x found. Arping 2.x requires libnet 1.1.x])]) + [AC_MSG_ERROR([libnet 1.0.x found. Arping 2.x requires libnet 1.1 or newer])]) AC_CHECK_LIB([net], [libnet_init], ,[AC_MSG_ERROR([libnet 1.1.x not found])]) AC_CHECK_LIB([pcap], [pcap_open_live], ,[AC_MSG_ERROR([libpcap not found])]) AC_SEARCH_LIBS([clock_gettime], [rt])