1From 0a51c8bc62c7b49b8d67a360daa6b1957256f4f5 Mon Sep 17 00:00:00 2001 2From: Romain Francoise <romain@rfr.io> 3Date: Mon, 1 Jan 2018 18:01:13 +0100 4Subject: [PATCH] Check for libnet_init in configure.in 5 6libnet_init_packet was the old libnet 1.0 function which is now long 7deprecated. 8 9Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 10[Retrieved from: 11https://github.com/jpr5/ngrep/commit/0a51c8bc62c7b49b8d67a360daa6b1957256f4f5] 12--- 13 configure.in | 2 +- 14 1 file changed, 1 insertion(+), 1 deletion(-) 15 16diff --git a/configure.in b/configure.in 17index 06c050a..dbef39b 100644 18--- a/configure.in 19+++ b/configure.in 20@@ -174,7 +174,7 @@ dnl 21 AC_ARG_ENABLE(tcpkill, 22 [ --enable-tcpkill enable connection killing support (default off)], 23 [ 24- AC_CHECK_LIB(net, libnet_init_packet,,echo !!! error: tcpkill feature enabled but no libnet found; exit) 25+ AC_CHECK_LIB(net, libnet_init,,echo !!! error: tcpkill feature enabled but no libnet found; exit) 26 use_tcpkill="$enableval" 27 ], 28 [ use_tcpkill="no" ]) 29