Changeset 9f61296


Ignore:
Timestamp:
03/03/05 14:27:40 (16 years ago)
Author:
Brendon Jones <brendonj@…>
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:
bfba808
Parents:
b40d8d5
Message:

make trace_read_packet return 0 for pcap_next() == NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r00c1935 r9f61296  
    661661        if (libtrace->format == PCAP || libtrace->format == PCAPINT) {
    662662                if ((pcappkt = pcap_next(libtrace->input.pcap, &pcaphdr)) == NULL) {
    663                         return -1;
     663                        return 0;
    664664                }
    665665                memcpy(buffer,&pcaphdr,sizeof(struct pcap_pkthdr));
Note: See TracChangeset for help on using the changeset viewer.