Changeset 997614d


Ignore:
Timestamp:
05/05/10 14:56:42 (12 years ago)
Author:
Perry Lorier <perry@…>
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:
28318a4
Parents:
325f86f
Message:

Correctly account for the FCS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_legacy.c

    r7fc0eaa2 r997614d  
    405405
    406406static int legacyeth_get_wire_length(const libtrace_packet_t *packet) {
    407         legacy_ether_t *leth = (legacy_ether_t *)packet->header;
    408         return leth->wlen;
     407        legacy_ether_t *leth = (legacy_ether_t *)packet->header; 
     408        return leth->wlen+4; /* +4 for FCS, wirelen is in little endian sigh. */
    409409}
    410410
Note: See TracChangeset for help on using the changeset viewer.