Changeset 853603a for tools/tracertstats


Ignore:
Timestamp:
05/29/06 14:08:00 (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:
0eef5d4
Parents:
f208f92
Message:

Migrate tools to the new API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracertstats/tracertstats.c

    r4e65f42 r853603a  
    146146                ts = trace_get_seconds(packet);
    147147                for(i=0;i<filter_count;++i) {
    148                         if(trace_bpf_filter(filters[i].filter,packet)) {
     148                        if(trace_apply_filter(filters[i].filter,packet)) {
    149149                                ++filters[i].count;
    150150                                filters[i].bytes+=trace_get_wire_length(packet);
     
    175175        trace_destroy(trace);
    176176        output_destroy(output);
     177        trace_destroy_packet(packet);
    177178}
    178179
     
    207208                                filters=realloc(filters,filter_count*sizeof(struct filter_t));
    208209                                filters[filter_count-1].expr=strdup(optarg);
    209                                 filters[filter_count-1].filter=trace_bpf_setfilter(optarg);
     210                                filters[filter_count-1].filter=trace_create_filter(optarg);
    210211                                filters[filter_count-1].count=0;
    211212                                filters[filter_count-1].bytes=0;
Note: See TracChangeset for help on using the changeset viewer.