Changeset 9cecdb2 for lib/libtrace.h


Ignore:
Timestamp:
11/24/05 12:00:55 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
79dbcef
Parents:
f66a4933
Message:

updated Changelog
fixed anonymous definition of packet status struct, to improve use.
updated format_erf paths to use sizeof(libtrace_packet_status_t)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    r5a67294 r9cecdb2  
    8787typedef struct libtrace_filter_t libtrace_filter_t;
    8888
     89/** Structure holding status information for a packet */
     90typedef struct libtrace_packet_status {
     91        uint8_t type;
     92        uint8_t reserved;
     93        uint16_t message;
     94
     95} libtrace_packet_status_t;
     96
    8997/** Structure holding information about a packet */
    9098#define LIBTRACE_PACKET_BUFSIZE 65536
     
    94102        char buffer[LIBTRACE_PACKET_BUFSIZE];
    95103        size_t size;
    96         struct {
    97                 uint8_t type;
    98                 uint8_t reserved;
    99                 uint16_t message;
    100         } status;
     104        libtrace_packet_status_t status;
    101105} __attribute__ ((packed)) libtrace_packet_t;
    102106                     
Note: See TracChangeset for help on using the changeset viewer.