Changeset 5bb5dd2 for lib/format_erf.c


Ignore:
Timestamp:
07/07/06 10:19:44 (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:
4abd50b
Parents:
f0b9060
Message:

Fixed wag_get_capture_length to use the payload length field of the wag header, rather than using the total frame size and subtracting what we assumed to be the header size.
Fixed bug in dag_read_packet where rxerrors would cause the payload to be null but the packet's size would still include the (theoretical) payload size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    re5c2bc4 r5bb5dd2  
    659659        DAG.diff -= size;
    660660
    661         packet->size = size;
     661        if (packet->payload != NULL)
     662                packet->size = size;
     663        else
     664                packet->size = erf_get_framing_length(packet);
     665       
    662666        tv = trace_get_timeval(packet);
    663667        DUCK.last_pkt = tv.tv_sec;
    664668       
    665         return (size);
     669        return (packet->size);
    666670}
    667671
Note: See TracChangeset for help on using the changeset viewer.