Changeset 2fa43fa for lib/libtrace_int.h


Ignore:
Timestamp:
08/25/15 17:43:01 (6 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, 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:
9a3a846
Parents:
f2066fa
Message:

Fixes an issue with old programs reusing a packet over multi traces

Fixes a bug that Shane found. In the case an old libtrace program used
a single packet and cycled over multiple traces. Closing the trace
and then reusing the packet with a new trace will try to finish
the packet which requires the old format to be present.

As such we now keep track of the last packet against the format,
and finish this when the trace is destroyed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace_int.h

    rf2066fa r2fa43fa  
    307307        /** The sequence is like accepted_packets but we don't reset this after a pause. */
    308308        uint64_t sequence_number;
     309        /** The packet read out by the trace, backwards compatibility to allow us to finalise
     310         * a packet when the trace is destroyed */
     311        libtrace_packet_t *last_packet;
    309312        /** The filename from the uri for the trace */
    310313        char *uridata;
Note: See TracChangeset for help on using the changeset viewer.