Changeset d3e4697


Ignore:
Timestamp:
09/13/05 10:54:47 (15 years ago)
Author:
Shane Alcock <salcock@…>
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:
fba4ca0
Parents:
12290e6
Message:

Made sure that most formats set packet->status to zero when reading in a packet.

Location:
lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r084d95a rd3e4697  
    478478        // have to copy it out of the memory hole at this stage:
    479479        memcpy(packet->buffer, erfptr, size);
    480 
     480       
     481        packet->status = 0;
    481482        packet->size = size;
    482483        DAG.offset += size;
     
    525526                return -1;
    526527        }
     528        packet->status = 0;
    527529        packet->size = rlen;
    528530        return rlen;
  • lib/format_pcap.c

    r1974620 rd3e4697  
    229229                return pcapbytes;
    230230        }
     231        packet->status = 0;
    231232        return (packet->size - sizeof(struct pcap_pkthdr));
    232233}
  • lib/format_wag.c

    r53f8305 rd3e4697  
    355355                tracefifo_ack_update(libtrace->fifo,size);
    356356
     357                packet->status = 0;
    357358                packet->size = numbytes;
    358359                return numbytes;
Note: See TracChangeset for help on using the changeset viewer.