Skip to content

Commit

Permalink
Clarify that libnet 1.1 and newer is OK, not just 1.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasHabets committed Nov 23, 2019
1 parent 0e5a10f commit 75b5cdd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
10 changes: 5 additions & 5 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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

Expand Down
16 changes: 4 additions & 12 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,12 @@ A: -T <IP/host> 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

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 75b5cdd

Please sign in to comment.