Changeset a89e2fa for lib


Ignore:
Timestamp:
04/23/10 12:30:22 (11 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:
1f0fd98
Parents:
83a1f4e
Message:

Deal with restarting a tracefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapfile.c

    rb5af22c ra89e2fa  
    186186                                sizeof(DATA(libtrace)->header));
    187187
     188                DATA(libtrace)->started = true;
     189
    188190                if (err<1)
    189191                        return -1;
     
    192194                                        0xa1b2c3d4) {
    193195                        trace_set_err(libtrace,TRACE_ERR_INIT_FAILED,
    194                                         "Not a pcap tracefile\n");
     196                                        "Not a pcap tracefile (magic=%08x)\n",swapl(libtrace,DATA(libtrace)->header.magic_number));
    195197                        return -1; /* Not a pcap file */
    196198                }
Note: See TracChangeset for help on using the changeset viewer.