Changeset 3b8a5ef for lib/libtrace.h


Ignore:
Timestamp:
11/30/05 15:43:30 (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:
2adf051
Parents:
08594b8
Message:

I hate shane

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    r14d8a63 r3b8a5ef  
    5959#include <netinet/in.h>
    6060/** API version as 2 byte hex digits, eg 0xXXYYZZ */
    61 #define LIBTRACE_API_VERSION 0x020018  /* 2.0.24 */
     61#define LIBTRACE_API_VERSION 0x030000  /* 3.0.00 */
    6262
    6363#ifdef __cplusplus
     
    7070#if __GNUC__ >= 3
    7171#  define SIMPLE_FUNCTION __attribute__((pure))
     72#  define UNUSED __attribute__((unused))
    7273#else
    7374#  define SIMPLE_FUNCTION
     75#  define UNUSED
    7476#endif
    7577       
     
    205207} __attribute__ ((packed)) libtrace_icmp_t;
    206208
     209/** LLC/SNAP header */
     210typedef struct libtrace_llcsnap
     211{
     212  u_int8_t dsap;
     213  u_int8_t ssap;
     214  u_int8_t control;
     215  u_int32_t oui:24;
     216  u_int16_t type;
     217} __attribute__ ((packed)) libtrace_llcsnap_t;
     218
    207219/** 802.3 frame */
    208220typedef struct libtrace_ether
     
    234246  u_int8_t clp:1;
    235247  u_int8_t hec;
    236   u_int16_t ether_type;
    237248} __attribute__ ((packed)) libtrace_atm_cell;
    238249
Note: See TracChangeset for help on using the changeset viewer.