Changeset 1b2fd6f


Ignore:
Timestamp:
11/12/04 10:10:26 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
e0fb362
Parents:
9580a74
Message:

added conditional path for bpf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r9580a74 r1b2fd6f  
    128128typedef enum {ERF, PCAP, PCAPINT, DAG, RTCLIENT, WAG, WAGINT } format_t;
    129129
     130#if HAVE_BPF 1
    130131struct libtrace_filter_t {
    131132        struct bpf_insn *filter;
    132133        char * filterstring;
    133134};
     135#endif
    134136
    135137struct libtrace_t {
     
    13471349 */
    13481350struct libtrace_filter_t *trace_bpf_setfilter(const char *filterstring) {
    1349 #ifdef HAVE_BPF_H
     1351#if HAVE_BPF
    13501352        struct libtrace_filter_t *filter = malloc(sizeof(struct libtrace_filter_t));
    13511353        filter->filterstring = strdup(filterstring);
     
    13681370int trace_bpf_filter(struct libtrace_filter_t *filter,
    13691371                        struct libtrace_packet_t *packet) {
    1370 #ifdef HAVE_BPF_H
     1372#if HAVE_BPF
    13711373        void *linkptr = 0;
    13721374        int clen = 0;
Note: See TracChangeset for help on using the changeset viewer.