Ignore:
Timestamp:
09/20/11 15:50:53 (10 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:
50c5053
Parents:
c0ccccd
Message:
  • We now cache the wire length as well
  • If we're going to cache the link type, we should probably use it whenever we call trace_get_link_type()!
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols_l2.c

    ree58d0d r979a84f4  
    381381                case TRACE_TYPE_METADATA:
    382382                case TRACE_TYPE_NONDATA:
    383                         ((libtrace_packet_t*)packet)->link_type = *linktype;
    384383                        ((libtrace_packet_t*)packet)->l2_header = meta;
    385384                        ((libtrace_packet_t*)packet)->l2_remaining = *remaining;
     
    414413                                case TRACE_TYPE_METADATA:
    415414                                case TRACE_TYPE_NONDATA:
    416                                         ((libtrace_packet_t*)packet)->link_type = *linktype;
    417415                                        ((libtrace_packet_t*)packet)->l2_header = meta;
    418416                                        ((libtrace_packet_t*)packet)->l2_remaining = *remaining;
Note: See TracChangeset for help on using the changeset viewer.