diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-07-08 18:21:13 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-07-08 18:21:13 +0200 |
commit | eddaac9d2b0161492d0904d1f6e65637be1d3161 (patch) | |
tree | 5fe3cf72bfac103cd1d6bc403fc46a2b691579ed | |
parent | c0b0ce5413bca3de5bc5550c5a2b092231db839a (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>
-rwxr-xr-x | configure | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -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 |