From eddaac9d2b0161492d0904d1f6e65637be1d3161 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Mon, 8 Jul 2013 18:21:13 +0200 Subject: [PATCH] configure: test also tpacket flags e.g. used in TX_RING Also try compile-testing TPACKET_V2/3 flags that are used in some particular versions, especially in TX_RING. Signed-off-by: Daniel Borkmann --- configure | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/configure b/configure index fb2d6ecc..2cbeb626 100755 --- a/configure +++ b/configure @@ -148,11 +148,12 @@ check_tpacket_v3() #include #include -struct tpacket3_hdr *hdr; - void main(void) { - printf("%d\n", hdr->tp_status); + struct tpacket3_hdr *hdr; + int foo[] = { + TP_STATUS_BLK_TMO, + }; } EOF @@ -174,11 +175,16 @@ check_tpacket_v2() #include #include -struct tpacket2_hdr *hdr; - void main(void) { - printf("%d\n", hdr->tp_status); + struct tpacket2_hdr *hdr; + int foo[] = { + TP_STATUS_AVAILABLE, + TP_STATUS_SEND_REQUEST, + TP_STATUS_SENDING, + TP_STATUS_KERNEL, + TP_STATUS_USER, + }; } EOF -- 2.11.4.GIT