Changeset e5c2bc4 for lib/trace.c


Ignore:
Timestamp:
06/27/06 12:41:26 (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:
496864e
Parents:
9461526
Message:

Redo the build system for libtrace3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    rc5ebbaa re5c2bc4  
    8888#include "parse_cmd.h"
    8989
    90 #if HAVE_PCAP_BPF_H
     90#ifdef HAVE_PCAP_BPF_H
    9191#  include <pcap-bpf.h>
    9292#else
     
    9595#  endif
    9696#endif
     97
    9798
    9899#include "libtrace_int.h"
     
    227228                linuxnative_constructor();
    228229#endif
    229 #ifdef HAVE_PCAP
     230#ifdef HAVE_LIBPCAP
    230231                pcap_constructor();
    231232#endif
     
    922923 */
    923924DLLEXPORT libtrace_filter_t *trace_create_filter(const char *filterstring) {
    924 #if HAVE_BPF
     925#ifdef HAVE_BPF
    925926        libtrace_filter_t *filter = (libtrace_filter_t*)
    926927                                malloc(sizeof(libtrace_filter_t));
     
    936937DLLEXPORT void trace_destroy_filter(libtrace_filter_t *filter)
    937938{
    938 #if HAVE_BPF
     939#ifdef HAVE_BPF
    939940        free(filter->filterstring);
    940941        if (filter->flag)
     
    953954int trace_bpf_compile(libtrace_filter_t *filter,
    954955                const libtrace_packet_t *packet ) {
    955 #if HAVE_BPF
     956#ifdef HAVE_BPF
    956957        void *linkptr = 0;
    957958        assert(filter);
     
    10031004DLLEXPORT int trace_apply_filter(libtrace_filter_t *filter,
    10041005                        const libtrace_packet_t *packet) {
    1005 #if HAVE_BPF
     1006#ifdef HAVE_BPF
    10061007        void *linkptr = 0;
    10071008        int clen = 0;
Note: See TracChangeset for help on using the changeset viewer.