Changeset 3840760 for tools/tracedump/tracedump.cc
- Timestamp:
- 11/28/05 10:15:22 (17 years ago)
- 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:
- 08594b8
- Parents:
- 14d8a63
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracedump/tracedump.cc
r0c9681f r3840760 20 20 { 21 21 struct libtrace_t *trace = NULL; 22 struct libtrace_packet_t packet;22 struct libtrace_packet_t *packet = trace_packet_create(); 23 23 struct libtrace_filter_t *filter=NULL; 24 24 uint64_t count=0; … … 65 65 } 66 66 67 while(trace_read_packet(trace, &packet)> 0 ){68 if (filter && !trace_bpf_filter(filter, &packet))67 while(trace_read_packet(trace,packet)> 0 ){ 68 if (filter && !trace_bpf_filter(filter,packet)) 69 69 continue; 70 70 71 trace_dump_packet( &packet);71 trace_dump_packet(packet); 72 72 if(count) { 73 73 numpackets++;
Note: See TracChangeset
for help on using the changeset viewer.