Changeset 72cc9cc


Ignore:
Timestamp:
03/17/06 13:23:10 (16 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:
5ad7ad0
Parents:
85a0d42
Message:

update tracedump to libtrace3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracedump/tracedump.cc

    r3d4fb8f r72cc9cc  
    6060        while(optind <argc) {
    6161                trace = trace_create(argv[optind]);
     62                optind ++;
    6263                numpackets = 0;
    6364                if (trace_is_err(trace)) {
     
    6869
    6970                trace_start(trace);
     71                if (trace_is_err(trace)) {
     72                        trace_perror(trace,"trace_start");
     73                        trace_destroy(trace);
     74                        continue;
     75                }
    7076                while(trace_read_packet(trace,packet)> 0 ){
    7177                        if (filter && !trace_bpf_filter(filter,packet))
     
    8389                printf("\n");
    8490                trace_destroy(trace);
    85                 optind ++;
    8691        }
    8792        return 0;
Note: See TracChangeset for help on using the changeset viewer.