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>
10Upstream: https://github.com/jpr5/ngrep/commit/0a51c8bc62c7b49b8d67a360daa6b1957256f4f5
11---
12 configure.in | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/configure.in b/configure.in
16index 06c050a..dbef39b 100644
17--- a/configure.in
18+++ b/configure.in
19@@ -174,7 +174,7 @@ dnl
20 AC_ARG_ENABLE(tcpkill,
21 [  --enable-tcpkill        enable connection killing support (default off)],
22 [
23-  AC_CHECK_LIB(net, libnet_init_packet,,echo !!! error: tcpkill feature enabled but no libnet found; exit)
24+  AC_CHECK_LIB(net, libnet_init,,echo !!! error: tcpkill feature enabled but no libnet found; exit)
25   use_tcpkill="$enableval"
26 ],
27 [ use_tcpkill="no" ])
28