0002-Check-for-libnet_init-in-configure-in.patch 1009 B

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