Changeset 194d49b


Ignore:
Timestamp:
10/20/05 18:57:42 (16 years ago)
Author:
Jamie Curtis <jamie@…>
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:
ef90843
Parents:
c95b923
Message:

pcap_pkthdr->caplen does not include sizeof(pcap_pkthdr)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    rfe7b292 r194d49b  
    374374        }
    375375        pcapptr = (struct pcap_pkthdr *)packet->buffer;
    376         pcapptr->caplen = size + sizeof(struct pcap_pkthdr);
    377         packet->size = pcapptr->caplen;
     376        pcapptr->caplen = size;
     377        packet->size = size + sizeof(struct pcap_pkthdr);
    378378        return size;
    379379}
Note: See TracChangeset for help on using the changeset viewer.