Changeset d56089a for tools/tracesplit/tracesplit.c
- Timestamp:
- 12/15/05 14:16:33 (16 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:
- 9c87732
- Parents:
- b8bb4c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracesplit/tracesplit.c
r3840760 rd56089a 44 44 struct libtrace_out_t *output = NULL; 45 45 struct libtrace_t *input; 46 struct libtrace_packet_t *packet = trace_ packet_create();46 struct libtrace_packet_t *packet = trace_create_packet(); 47 47 uint64_t count=UINT64_MAX; 48 48 uint64_t bytes=UINT64_MAX; … … 129 129 130 130 if (output && trace_get_seconds(packet)>firsttime+interval) { 131 trace_ output_destroy(output);131 trace_destroy_output(output); 132 132 output=NULL; 133 133 firsttime+=interval; … … 136 136 pktcount++; 137 137 if (output && pktcount%count==0) { 138 trace_ output_destroy(output);138 trace_destroy_output(output); 139 139 output=NULL; 140 140 } … … 142 142 totbytes+=trace_get_capture_length(packet); 143 143 if (output && totbytes-totbyteslast>=bytes) { 144 trace_ output_destroy(output);144 trace_destroy_output(output); 145 145 output=NULL; 146 146 totbyteslast=totbytes; … … 163 163 buffer=strdupcati(buffer,++filenum); 164 164 } 165 output=trace_ output_create(buffer);165 output=trace_create_output(buffer); 166 166 free(buffer); 167 167 } … … 171 171 172 172 if (!output) 173 trace_ output_destroy(output);173 trace_destroy_output(output); 174 174 175 175 return 0;
Note: See TracChangeset
for help on using the changeset viewer.