Changeset 95b1d6d for lib/trace.c


Ignore:
Timestamp:
11/27/07 14:30:48 (14 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:
f2fae49
Parents:
631c337
Message:
  • Remember to clear the packet cache when trace_event is used to read packets
  • Packets that had a corrupt or incorrect rt_type will no longer be erroneously treated as pcap packets (unless the rt_type ends up being between 2000 and 2999!)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    rdc6dc11 r95b1d6d  
    977977        assert(packet);
    978978
     979        /* Clear the packet cache */
     980        packet->capture_length = -1;
     981        packet->l3_header = NULL;
     982        packet->l3_ethertype = 0;
     983       
    979984        /* Store the trace we are reading from into the packet opaque
    980985         * structure */
Note: See TracChangeset for help on using the changeset viewer.