Changeset 4abd50b for lib/format_erf.c


Ignore:
Timestamp:
07/07/06 10:47:27 (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:
404210e
Parents:
5bb5dd2
Message:

A few more fixes relating to the wag and dag changes made in the previous commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r5bb5dd2 r4abd50b  
    650650        packet->header = erfptr;
    651651        if (((dag_record_t *)packet->buffer)->flags.rxerror == 1) {
     652                /* rxerror means the payload is corrupt - drop it
     653                 * by tweaking rlen */
    652654                packet->payload = NULL;
     655                erfptr->rlen = htons(erf_get_framing_length(packet));
    653656        } else {
    654657                packet->payload = (char*)packet->buffer
     
    10101013static int erf_get_capture_length(const libtrace_packet_t *packet) {
    10111014        dag_record_t *erfptr = 0;
     1015        if (packet->payload == NULL)
     1016                return 0;
     1017       
    10121018        erfptr = (dag_record_t *)packet->header;
    10131019        return (ntohs(erfptr->rlen) - erf_get_framing_length(packet));
Note: See TracChangeset for help on using the changeset viewer.