Changeset cab58c5 for lib/rt_protocol.h


Ignore:
Timestamp:
11/14/06 13:21:39 (14 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:
35e0869
Parents:
33d83d4
Message:

Move RT_* to TRACE_RT_* and put it in libtrace.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/rt_protocol.h

    re502f76 rcab58c5  
    1010#define RT_MAX_HDR_SIZE 256
    1111#define MAX_SEQUENCE 2147483647
    12 
    13 #define RT_DATA_SIMPLE 1000
    14 #define RT_DATA_PCAP 2000
    1512
    1613/* Procedure for adding new RT control types
     
    3835 */
    3936
    40 /** Type field definitions */
    41 enum rt_field_t {
    42  RT_HELLO       =1,     /**< Connection accepted */
    43  RT_START       =2,     /**< Request for data transmission to begin */
    44  RT_ACK         =3,     /**< Data acknowledgement */
    45  RT_STATUS      =4,     /**< Fifo status packet */
    46  RT_DUCK        =5,     /**< Dag duck info packet */
    47  RT_END_DATA    =6,     /**< Server is exiting message */
    48  RT_CLOSE       =7,     /**< Client is exiting message */
    49  RT_DENY_CONN   =8,     /**< Connection has been denied */
    50  RT_PAUSE       =9,     /**< Request server to suspend sending data */
    51  RT_PAUSE_ACK   =10,    /**< Server is paused message */
    52  RT_OPTION      =11,    /**< Option request */
    53  RT_KEYCHANGE   =12,    /**< Anonymisation key has changed */
    54  RT_DUCK_2_4    =13,    /**< Dag 2.4 Duck */
    55  RT_DUCK_2_5    =14,    /**< Dag 2.5 Duck */
    56  RT_LOSTCONN    =15,    /**< Lost connection to server */
    57  
    58  RT_DATA_ERF            =RT_DATA_SIMPLE + TRACE_FORMAT_ERF,
    59  RT_DATA_WAG            =RT_DATA_SIMPLE + TRACE_FORMAT_WAG,
    60  RT_DATA_LEGACY_ATM     =RT_DATA_SIMPLE + TRACE_FORMAT_LEGACY_ATM,
    61  RT_DATA_LEGACY_POS     =RT_DATA_SIMPLE + TRACE_FORMAT_LEGACY_POS,
    62  RT_DATA_LEGACY_ETH     =RT_DATA_SIMPLE + TRACE_FORMAT_LEGACY_ETH,
    63  RT_DATA_LINUX_NATIVE   =RT_DATA_SIMPLE + TRACE_FORMAT_LINUX_NATIVE,
    64 
    65  RT_DATA_PCAP_NULL              =RT_DATA_PCAP + TRACE_DLT_NULL,
    66  RT_DATA_PCAP_EN10MB            =RT_DATA_PCAP + TRACE_DLT_EN10MB,
    67  RT_DATA_PCAP_ATM_RFC1483       =RT_DATA_PCAP + TRACE_DLT_ATM_RFC1483,
    68  RT_DATA_PCAP_IEEE802_11        =RT_DATA_PCAP + TRACE_DLT_IEEE802_11,
    69  RT_DATA_PCAP_LINUX_SLL         =RT_DATA_PCAP + TRACE_DLT_LINUX_SLL,
    70  RT_DATA_PCAP_PFLOG             =RT_DATA_PCAP + TRACE_DLT_PFLOG,
    71  RT_LAST = 3000
    72 };
    73 
    7437typedef struct fifo_info {
    7538        uint64_t in;
     
    8245/** RT packet header */
    8346typedef struct rt_header {
    84         enum rt_field_t type;
     47        libtrace_rt_types_t type;
    8548        uint16_t length;
    8649        uint32_t sequence;
Note: See TracChangeset for help on using the changeset viewer.