Changeset 91c2acc


Ignore:
Timestamp:
09/15/15 11:11:14 (5 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, 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:
6264e8e
Parents:
67dc06e
Message:

Fix bad ERF writing bug, for real

Make sure that the record length matches the amount of data we are writing
out!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r087674b r91c2acc  
    564564                int caplen) {
    565565        int numbytes = 0;
     566
     567        if (caplen + framinglen != ntohs(erfptr->rlen))
     568                erfptr->rlen = htons(caplen + framinglen);
    566569
    567570        if ((numbytes =
Note: See TracChangeset for help on using the changeset viewer.