Changeset d3b2234 for lib/libtrace.h


Ignore:
Timestamp:
02/23/06 15:22:40 (16 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:
9836f12
Parents:
b7d2de5
Message:

depacket->sizeification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    red7c716 rd3b2234  
    9292/** Structure holding information about a packet */
    9393#define LIBTRACE_PACKET_BUFSIZE 65536
     94
     95/** The libtrace structure, applications shouldn't be meddling around in here
     96 */
    9497typedef struct libtrace_packet_t {
    9598        struct libtrace_t *trace;
    9699        void *header;
    97100        void *payload;
     101        buf_control_t buf_control;
    98102        void *buffer;
    99         size_t size;
    100         uint8_t type;           /* rt protocol type for the packet */
    101         buf_control_t buf_control;
     103        size_t size;            /**< trace_get_framing_length()
     104                                 * +trace_get_capture_length() */
     105        uint8_t type;           /**< rt protocol type for the packet */
    102106} libtrace_packet_t;
    103107                     
     
    756760 * @param packet        the packet opaque pointer
    757761 * @param size          the new length of the packet
    758  * @return the new length of the packet, or the original length of the
    759  * packet if unchanged
    760  * @author Daniel Lawson
     762 * @return the new capture length of the packet, or the original capture
     763 * length of the packet if unchanged
    761764 */
    762765size_t trace_set_capture_length(libtrace_packet_t *packet, size_t size);
Note: See TracChangeset for help on using the changeset viewer.