Ignore:
Timestamp:
08/25/06 10:51:49 (7 years ago)
Author:
perry
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
  • trunk/tools/tracesplit/tracesplit.c

    r903 r950  
    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.