Ignore:
Timestamp:
05/29/06 11:58:52 (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:
853603a
Parents:
e2aebe7
Message:

Migrate the tests to the new API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test-pcap-bpf.c

    rd8d1ff7 rf208f92  
    6767        int count = 0;
    6868        struct libtrace_packet_t *packet;
    69         struct libtrace_filter_t *filter = trace_bpf_setfilter("port 80");
     69        struct libtrace_filter_t *filter = trace_create_filter("port 80");
    7070
    7171        trace = trace_create(uri);
     
    9696                count ++;
    9797        }
    98         trace_destroy_packet(&packet);
     98        trace_destroy_packet(packet);
    9999        if (error == 0) {
    100100                if (count == 54) {
     
    107107                iferr(trace);
    108108        }
    109         trace_destroy_bpf(filter);
     109        trace_destroy_filter(filter);
    110110        trace_destroy(trace);
    111111        filter=NULL;
Note: See TracChangeset for help on using the changeset viewer.