Changeset 755e794


Ignore:
Timestamp:
09/18/06 21:03:34 (15 years ago)
Author:
Perry Lorier <perry@…>
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:
eecda9f
Parents:
103cc3b
Message:

Add /dev/bpf capture support for the ThreeBSD's

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    r11346a5 r755e794  
    2929
    3030
    31 AC_CONFIG_HEADERS([config.h])
     31AM_CONFIG_HEADER([config.h])
    3232dnl Checks for programs.
    3333AC_PROG_CC
     
    128128AC_REPLACE_FUNCS(pcap_next_ex)
    129129AC_CHECK_FUNCS(pcap_inject pcap_sendpacket pcap_setnonblock)
     130AC_CHECK_DECLS([BIOCSETIF],,,[
     131#include <sys/types.h>
     132#include <sys/time.h>
     133#include <sys/ioctl.h>
     134#include <net/bpf.h>
     135])
    130136
    131137# configure time options for man pages
    132138AC_ARG_WITH(man,
    133             AS_HELP_STRING(--with-man,install man pages by default),
     139            #AS_HELP_STRING(--with-man,install man pages by default),
    134140
    135141             if test "$withval" = yes
     
    146152# borrowed from libpcap!
    147153AC_ARG_WITH(dag,
    148             AS_HELP_STRING(--with-dag[=DIR],include DAG support (located in directory DIR, if supplied)),
     154#           AS_HELP_STRING(--with-dag[=DIR],include DAG support (located in directory DIR, if supplied)),
    149155[
    150156        if test "$withval" = no
     
    229235fi
    230236
     237AM_CONDITIONAL([HAVE_BPF], [test "$ac_cv_have_decl_BIOCSETIF" = yes ])
    231238AM_CONDITIONAL([HAVE_DAG], [test "$libtrace_dag" = true])
    232239AM_CONDITIONAL([DAG2_4], [test "$libtrace_dag2_4" = true])
     
    280287
    281288if test x"$libtrace_swig" = xtrue; then
     289H
    282290        if test x"$libtrace_python" = xtrue; then
    283291                AC_MSG_NOTICE([Building swig bindings for: python])
  • lib/Makefile.am

    rc4cf162 r755e794  
    77else
    88NATIVEFORMATS=
     9endif
     10
     11if HAVE_BPF
     12BPFFORMATS=format_bpf.c
     13else
     14BPFFORMATS=
    915endif
    1016
     
    1824                format_erf.c format_pcap.c format_wag.c format_legacy.c \
    1925                format_rt.c format_helper.c format_helper.h format_pcapfile.c \
    20                 format_duck.c $(NATIVEFORMATS) \
     26                format_duck.c $(NATIVEFORMATS) $(BPFFORMATS) \
    2127                parse_cmd.c parse_cmd.h libtrace_int.h lt_inttypes.h \
    2228                linktypes.c protocols.c libtraceio.h link_wireless.c
  • lib/libtrace.h.in

    r6df012d r755e794  
    13161316        TRACE_FORMAT_LEGACY_ETH   =8,
    13171317        TRACE_FORMAT_LINUX_NATIVE =9,
    1318         TRACE_FORMAT_DUCK         =10
     1318        TRACE_FORMAT_DUCK         =10,
     1319        TRACE_FORMAT_BPF          =11,
    13191320};
    13201321
  • lib/trace.c

    re4976e1 r755e794  
    231231                pcap_constructor();
    232232#endif
     233#if HAVE_BIOCSETIF
     234                bpf_constructor();
     235#endif
    233236                pcapfile_constructor();
    234237                rt_constructor();
Note: See TracChangeset for help on using the changeset viewer.