Changeset 7fe6dfa for configure.in


Ignore:
Timestamp:
10/02/15 11:59:07 (5 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
32a3ec5
Parents:
01619eb
Message:

Enforce immediate mode for pcap if available

This will prevent pcap from buffering packets internally, which can really
mess with any real-time analysis (especially since pcap seems to ignore
the timeout (observed in Debian Jessie)).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    r67dc06e r7fe6dfa  
    216216AC_CHECK_LIB(pcap,pcap_next_ex,pcapfound=1,pcapfound=0)
    217217AC_CHECK_LIB(pcap,pcap_create,pcapcreate=1,pcapcreate=0)
     218AC_CHECK_LIB(pcap,pcap_set_immediate_mode,pcapimmediate=1,pcapimmediate=0)
    218219AC_CHECK_DECLS([BIOCSETIF],,,[
    219220#include <sys/types.h>
     
    260261        AC_DEFINE([HAVE_PCAP_CREATE],1,[compile with libpcap 1.0 support])
    261262fi
     263
     264if test "$pcapimmediate" = 1; then
     265        AC_DEFINE([HAVE_PCAP_IMMEDIATE],1,[able to use pcap_set_immediate_mode])
     266fi       
    262267
    263268# Configure options for use of DAG cards
Note: See TracChangeset for help on using the changeset viewer.