Changeset 483abab


Ignore:
Timestamp:
08/25/06 10:51:49 (14 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:
e373992
Parents:
ac34f1f
Message:

For traces that have padded packets (capture_len>wire_len), truncate them
while we split/convert them to help try and save some disk space.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracesplit/tracesplit.c

    r66caf4b r483abab  
    182182                }
    183183
     184                /* Some traces we have are padded (usually with 0x00), so
     185                 * lets sort that out now and truncate them properly
     186                 */
     187
     188                if (trace_get_capture_length(packet)
     189                        > trace_get_wire_length(packet)) {
     190                        trace_set_capture_length(packet,trace_get_wire_length(packet));
     191                }
     192
    184193                if (trace_write_packet(output,packet)==-1) {
    185194                        trace_perror_output(output,"write_packet");
Note: See TracChangeset for help on using the changeset viewer.