Changeset d5e1796 for lib/libtrace.h.in


Ignore:
Timestamp:
10/25/06 15:42:38 (15 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:
c9f6ee5
Parents:
16da8f3
Message:

Add support to convert from Endance-ATM to PCAP-LLCSnap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r16da8f3 rd5e1796  
    170170#define LIBTRACE_PACKET_BUFSIZE 65536
    171171
    172 /** The libtrace packet structure, applications shouldn't be
    173  * meddling around in here
    174  */
    175 typedef struct libtrace_packet_t {
    176         struct libtrace_t *trace; /**< pointer to the trace */
    177         void *header;           /**< pointer to the framing header */
    178         void *payload;          /**< pointer to the link layer */
    179         void *buffer;           /**< allocated buffer */
    180         uint32_t type;          /**< rt protocol type for the packet */
    181         buf_control_t buf_control; /**< who owns the memory */
    182 } libtrace_packet_t;
    183 
    184172/** libtrace error information */
    185173typedef struct trace_err_t{
     
    216204        TRACE_DLT_LINUX_SLL = 113,
    217205        TRACE_DLT_PFLOG = 117,
    218     TRACE_DLT_IEEE802_11_RADIO = 127 /**< Radiotap */
     206        TRACE_DLT_IEEE802_11_RADIO = 127 /**< Radiotap */
    219207} libtrace_dlt_t ;
    220208
     
    235223       TRACE_TYPE_80211_PRISM = 12,
    236224       TRACE_TYPE_AAL5 = 13,
    237        TRACE_TYPE_DUCK = 14,            /**< Pseudo link layer for DUCK packets */
    238        TRACE_TYPE_80211_RADIO = 15 /**< Radiotap + 802.11 */
    239      } libtrace_linktype_t;
     225       TRACE_TYPE_DUCK = 14,         /**< Pseudo link layer for DUCK packets */
     226       TRACE_TYPE_80211_RADIO = 15,  /**< Radiotap + 802.11 */
     227       TRACE_TYPE_LLCSNAP = 16,      /**< Raw LLC/SNAP */
     228       
     229} libtrace_linktype_t;
     230
     231typedef enum {
     232        TRACE_RT_DLT_ATM_RFC1483 = 2000+TRACE_DLT_ATM_RFC1483,
     233        TRACE_RT_LAST   = (2<<31)
     234} libtrace_rt_types_t;
     235
     236/** The libtrace packet structure, applications shouldn't be
     237 * meddling around in here
     238 */
     239typedef struct libtrace_packet_t {
     240        struct libtrace_t *trace;       /**< pointer to the trace */
     241        void *header;                   /**< pointer to the framing header */
     242        void *payload;                  /**< pointer to the link layer */
     243        void *buffer;                   /**< allocated buffer */
     244        libtrace_rt_types_t  type;      /**< rt protocol type for the packet */
     245        buf_control_t buf_control;      /**< who owns the memory */
     246} libtrace_packet_t;
     247
    240248
    241249/** Trace directions
Note: See TracChangeset for help on using the changeset viewer.