Changeset 9cc1266 for lib/libtrace.h.in


Ignore:
Timestamp:
02/22/11 10:01:08 (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:
e4e94c38
Parents:
ae76c14
Message:
  • Fixed poor performance of the event API by greatly reducing the amount of packets created, copied and freed
  • We now cache the transport header and payload length for each packet
  • We now deal with Linux SLL Ethernet captures taken using tcpdump with -i any correctly.
  • Changed parameters for internal function trace_get_payload_from_sll - it now sets both the arphrd type and the next protocol
  • Moved ARPHRD definitions into a separate header file, as they come in handy anywhere we deal with SLL headers
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    rc259635 r9cc1266  
    420420        buf_control_t buf_control;      /**< Describes memory ownership */
    421421        int capture_length;             /**< Cached capture length */
     422        int payload_length;             /**< Cached payload length */
    422423        void *l3_header;                /**< Cached l3 header */
    423424        uint16_t l3_ethertype;          /**< Cached l3 ethertype */
     425        void *l4_header;                /**< Cached transport header */
     426        uint8_t transport_proto;        /**< Cached transport protocol */
    424427} libtrace_packet_t;
    425428
Note: See TracChangeset for help on using the changeset viewer.