Changeset 62dec50


Ignore:
Timestamp:
09/01/16 16:14:12 (4 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, master, ndag_format, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
903f64d
Parents:
99be155
Message:

Fix bug when pausing and restarting a pcap: trace file

Instead of resuming from where it left off, the next
read_packet would read from the start of the file again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    ree6e802 r62dec50  
    347347static int pcap_pause_input(libtrace_t *libtrace)
    348348{
     349        return 0; /* success */
     350}
     351
     352
     353static int pcap_fin_input(libtrace_t *libtrace)
     354{
    349355        pcap_close(INPUT.pcap);
    350356        INPUT.pcap=NULL;
    351         return 0; /* success */
    352 }
    353 
    354 
    355 static int pcap_fin_input(libtrace_t *libtrace)
    356 {
    357357        free(libtrace->format_data);
    358358        return 0; /* success */
Note: See TracChangeset for help on using the changeset viewer.