summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-08 18:21:13 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-08 18:21:13 +0200
commiteddaac9d2b0161492d0904d1f6e65637be1d3161 (patch)
tree5fe3cf72bfac103cd1d6bc403fc46a2b691579ed /configure
parentc0b0ce5413bca3de5bc5550c5a2b092231db839a (diff)
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 <dborkman@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 12 insertions, 6 deletions
diff --git a/configure b/configure
index fb2d6ec..2cbeb62 100755
--- a/configure
+++ b/configure
@@ -148,11 +148,12 @@ check_tpacket_v3()
#include <stdio.h>
#include <linux/if_packet.h>
-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 <stdio.h>
#include <linux/if_packet.h>
-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