Changeset e1fdc05 for lib/trace.c


Ignore:
Timestamp:
06/28/07 15:43:40 (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:
1344aa8
Parents:
0c47bf4
Message:
  • Added format for Auckland VII-style ATM header captures
  • Fixed bug in format_legacy where a non-64 byte record would cause an assert fail - it will now keep trying to read until it gets a 64 byte record or reaches EOF.
  • trace_copy_packet was not initializing the cached values sensibly which was wreaking havoc - this is now fixed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r21ab138 re1fdc05  
    224224                tsh_constructor();
    225225                legacy_constructor();
     226                atmhdr_constructor();
    226227#ifdef HAVE_NETPACKET_PACKET_H
    227228                linuxnative_constructor();
     
    650651        dest->type=packet->type;
    651652        dest->buf_control=TRACE_CTRL_PACKET;
     653        /* Reset the cache - better to recalculate than try to convert
     654         * the values over to the new packet */
     655        dest->capture_length = -1;
     656        dest->l3_header = NULL;
     657        dest->l3_ethertype = 0;
    652658        memcpy(dest->header,packet->header,trace_get_framing_length(packet));
    653659        memcpy(dest->payload,packet->payload,trace_get_capture_length(packet));
Note: See TracChangeset for help on using the changeset viewer.