Changeset c0506ea for configure.in


Ignore:
Timestamp:
09/20/11 14:21:53 (9 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, 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:
c0ccccd
Parents:
2cf2c2d
Message:
  • We now use pcap_create and pcap_activate for pcap interfaces if libpcap 1.0 or later is available. This doesn't seem to make much of a difference performance-wise, as pcap_open_live was updated to use these functions anyway. This means if mmapped packet capture is available, we would have used it via pcap_open_live anyway.
  • Added a new function (trace_interrupt). Calling this function will set an internal variable which can be used to cause any blocking read_packet function to exit with an EOF. Useful for programs that are handling signals themselves and need a way to tell libtrace to stop. Prior to this, programs like tracestats would not exit on Ctrl-C if reading from a pcap interface which was not receiving any packets.
  • Updated pcap interface format to respond to trace_interrupt.
  • Optimising trace_apply_filter to minimise calls to trace_get_link_type and trace_get_packet_buffer.
  • Removed unused extern variable "form" from libtrace_int.h
  • Fixed bug with filters in the pcap interface format which would result in "invalid BPF program" error message when filter was definitely legit.
  • Updated version number to 3.0.13
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    r33e8f4d rc0506ea  
    44# and in the README
    55
    6 AC_INIT([libtrace],[3.0.12],[contact@wand.net.nz],[libtrace])
     6AC_INIT([libtrace],[3.0.13],[contact@wand.net.nz],[libtrace])
    77
    88LIBTRACE_MAJOR=3
    99LIBTRACE_MID=0
    10 LIBTRACE_MINOR=12
     10LIBTRACE_MINOR=13
    1111
    1212# OpenSolaris hides libraries like libncurses in /usr/gnu/lib, which is not
     
    221221# Check for libpcap
    222222AC_CHECK_LIB(pcap,pcap_next_ex,pcapfound=1,pcapfound=0)
     223AC_CHECK_LIB(pcap,pcap_create,pcapcreate=1,pcapcreate=0)
    223224AC_CHECK_FUNCS(pcap_inject pcap_sendpacket pcap_setnonblock)
    224225AC_CHECK_DECLS([BIOCSETIF],,,[
     
    248249        AC_DEFINE([HAVE_LIBPCAP],1,[compile with libpcap support])
    249250        AC_DEFINE([HAVE_BPF_FILTER],1,[compile with bpf filter support])
     251fi
     252
     253if test "$pcapcreate" = 1; then
     254        AC_DEFINE([HAVE_PCAP_CREATE],1,[compile with libpcap 1.0 support])
    250255fi
    251256
     
    542547echo
    543548AC_MSG_NOTICE([Libtrace version $PACKAGE_VERSION])
    544 reportopt "Compiled with PCAP 0.8 support" $ac_cv_lib_pcap_pcap_next_ex
     549if test "$pcapcreate" = 1; then
     550        AC_MSG_NOTICE([Compiled with PCAP support: >= 1.0])
     551else
     552        AC_MSG_NOTICE([Compiled with PCAP support: < 1.0])
     553fi
     554
    545555reportopt "Compiled with compressed trace (zlib) support" $ac_cv_lib_z_deflate
    546556reportopt "Compiled with compressed trace (bz2) support" $ac_cv_lib_bz2_BZ2_bzDecompressInit
Note: See TracChangeset for help on using the changeset viewer.