- Timestamp:
- 09/20/11 14:23:33 (10 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:
- 979a84f4
- Parents:
- c0506ea
- Location:
- tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/traceends/traceends.cc
r86acfb6 rc0ccccd 83 83 (void)sig; 84 84 done=1; 85 trace_interrupt(); 85 86 } 86 87 -
tools/tracemerge/tracemerge.c
rba91618 rc0ccccd 30 30 { 31 31 done=1; 32 trace_interrupt(); 32 33 } 33 34 -
tools/tracereport/tracereport.c
r212f9da2 rc0ccccd 58 58 { 59 59 done=1; 60 trace_interrupt(); 60 61 } 61 62 -
tools/tracesplit/tracesplit.c
r3eb1058 rc0ccccd 71 71 (void)sig; 72 72 done=1; 73 trace_interrupt(); 73 74 } 74 75 -
tools/tracestats/tracestats.c
rec0f8f1 rc0ccccd 64 64 (void)signal; 65 65 done=1; 66 trace_interrupt(); 66 67 } 67 68 … … 102 103 for (;;) { 103 104 int psize; 105 int wlen; 104 106 if ((psize = trace_read_packet(trace, packet)) <1) { 105 107 break; … … 108 110 if (done) 109 111 break; 112 wlen = trace_get_wire_length(packet); 110 113 111 114 for(i=0;i<filter_count;++i) { … … 114 117 if(trace_apply_filter(filters[i].filter,packet) > 0) { 115 118 ++filters[i].count; 116 filters[i].bytes+= trace_get_wire_length(packet);119 filters[i].bytes+=wlen; 117 120 } 118 121 if (trace_is_err(trace)) { … … 124 127 125 128 ++count; 126 bytes+= trace_get_wire_length(packet);129 bytes+=wlen; 127 130 } 128 131
Note: See TracChangeset
for help on using the changeset viewer.