1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00
aports/community/tcpreplay/remove-tx_ring-checks.patch
2025-07-12 06:51:56 +00:00

30 lines
954 B
Diff

Patch-Source: https://src.fedoraproject.org/rpms/tcpreplay/blob/f42/f/tcpreplay-4.5.1-configure_ac.patch
--- tcpreplay-4.5.1/configure.ac.org 2025-01-26 10:21:46.751142871 +1100
+++ tcpreplay-4.5.1/configure.ac 2025-01-26 10:43:21.592419510 +1100
@@ -1498,25 +1498,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
])
have_tx_ring=no
-dnl Check for older Linux TX_RING support
-AC_MSG_CHECKING(for TX_RING socket sending support)
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-#include <sys/socket.h>
-#include <netpacket/packet.h>
-#include <net/ethernet.h> /* the L2 protocols */
-#include <netinet/in.h> /* htons */
-#include <linux/if_packet.h>
-]], [[
- int test;
- test = TP_STATUS_WRONG_FORMAT
-]])],[
- AC_DEFINE([HAVE_TX_RING], [1],
- [Do we have Linux TX_RING socket support?])
- AC_MSG_RESULT(yes)
- have_tx_ring=yes
-],[
- AC_MSG_RESULT(no)
-])
AC_CHECK_HEADERS([bpf/libbpf.h])
AC_CHECK_HEADERS([bpf/bpf.h])