Ignore:
Timestamp:
03/18/08 14:12:36 (5 years ago)
Author:
spa1
Message:
  • <format>_set_capture_length now resets the cached capture length for the packet, so that subsequent calls to trace_get_capture_length will no longer return the "old" capture length
  • erf_read_packet should no longer complain about packets with newer ERF types, i.e. ERF type values > 10
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/format_pcapfile.c

    r1319 r1331  
    497497                return trace_get_capture_length(packet); 
    498498        } 
     499        /* Reset the cached capture length */ 
     500        packet->capture_length = -1; 
    499501        pcapptr = (libtrace_pcapfile_pkt_hdr_t *)packet->header; 
    500502        pcapptr->caplen = swapl(packet->trace,(uint32_t)size); 
Note: See TracChangeset for help on using the changeset viewer.