Changeset cab58c5 for lib/libtrace.h.in


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    ra575f4b rcab58c5  
    233233} libtrace_linktype_t;
    234234
     235/** RT protocol base format identifiers
     236 * This is used to say what kind of packet is being sent over the rt protocol
     237 */
     238enum base_format_t {
     239        TRACE_FORMAT_ERF          =1,
     240        TRACE_FORMAT_PCAP         =2,
     241        TRACE_FORMAT_PCAPFILE     =3,
     242        TRACE_FORMAT_WAG          =4,
     243        TRACE_FORMAT_RT           =5,
     244        TRACE_FORMAT_LEGACY_ATM   =6,
     245        TRACE_FORMAT_LEGACY_POS   =7,
     246        TRACE_FORMAT_LEGACY_ETH   =8,
     247        TRACE_FORMAT_LINUX_NATIVE =9,
     248        TRACE_FORMAT_DUCK         =10,
     249        TRACE_FORMAT_BPF          =11
     250};
     251
     252/* RT protocol packet types */
    235253typedef enum {
    236         TRACE_RT_DLT_ATM_RFC1483 = 2000+TRACE_DLT_ATM_RFC1483,
    237         TRACE_RT_LAST   = (2<<31)
     254        TRACE_RT_HELLO          =1, /**< Connection accepted */
     255        TRACE_RT_START          =2, /**< Request for data transmission to begin
     256                                    */
     257        TRACE_RT_ACK            =3, /**< Data acknowledgement */
     258        TRACE_RT_STATUS         =4, /**< Fifo status packet */
     259        TRACE_RT_DUCK           =5, /**< Dag duck info packet */
     260        TRACE_RT_END_DATA       =6, /**< Server is exiting message */
     261        TRACE_RT_CLOSE          =7, /**< Client is exiting message */
     262        TRACE_RT_DENY_CONN      =8, /**< Connection has been denied */
     263        TRACE_RT_PAUSE          =9, /**< Request server to suspend sending data
     264                                     */
     265        TRACE_RT_PAUSE_ACK      =10,/**< Server is paused message */
     266        TRACE_RT_OPTION         =11,/**< Option request */
     267        TRACE_RT_KEYCHANGE      =12,/**< Anonymisation key has changed */
     268        TRACE_RT_DUCK_2_4       =13,/**< Dag 2.4 Duck */
     269        TRACE_RT_DUCK_2_5       =14,/**< Dag 2.5 Duck */
     270        TRACE_RT_LOSTCONN       =15,/**< Lost connection to server */
     271
     272        TRACE_RT_DATA_SIMPLE    = 1000, /**< Trace types that know their link
     273                                          * type
     274                                          */
     275        TRACE_RT_DATA_ERF       =TRACE_RT_DATA_SIMPLE+TRACE_FORMAT_ERF,
     276        TRACE_RT_DATA_WAG       =TRACE_RT_DATA_SIMPLE+TRACE_FORMAT_WAG,
     277        TRACE_RT_DATA_LEGACY_ATM=TRACE_RT_DATA_SIMPLE+TRACE_FORMAT_LEGACY_ATM,
     278        TRACE_RT_DATA_LEGACY_POS=TRACE_RT_DATA_SIMPLE+TRACE_FORMAT_LEGACY_POS,
     279        TRACE_RT_DATA_LEGACY_ETH=TRACE_RT_DATA_SIMPLE+TRACE_FORMAT_LEGACY_ETH,
     280        TRACE_RT_DATA_LINUX_NATIVE=TRACE_RT_DATA_SIMPLE+TRACE_FORMAT_LINUX_NATIVE,
     281
     282        TRACE_RT_DATA_DLT               = 2000, /**< Pcap doesn't store the
     283                                                  * linktype per packet, and
     284                                                  * thus we have to store it
     285                                                  * in here.  sigh.
     286                                                  */
     287        TRACE_RT_DLT_NULL               =TRACE_RT_DATA_DLT+TRACE_DLT_NULL,
     288        TRACE_RT_DLT_EN10MB             =TRACE_RT_DATA_DLT+TRACE_DLT_EN10MB,
     289        TRACE_RT_DLT_IEEE802_11         =TRACE_RT_DATA_DLT+TRACE_DLT_IEEE802_11,
     290        TRACE_RT_DLT_LINUX_SLL          =TRACE_RT_DATA_DLT+TRACE_DLT_LINUX_SLL,
     291        TRACE_RT_DLT_PFLOG              =TRACE_RT_DATA_DLT+TRACE_DLT_PFLOG,
     292        TRACE_RT_DLT_ATM_RFC1483        =TRACE_RT_DATA_DLT+TRACE_DLT_ATM_RFC1483,
     293        TRACE_RT_LAST                   = (2<<31)
    238294} libtrace_rt_types_t;
    239295
     
    13931449DLLEXPORT const char *trace_parse_uri(const char *uri, char **format);
    13941450
    1395 /** RT protocol base format identifiers
    1396  * This is used to say what kind of packet is being sent over the rt protocol
    1397  */
    1398 enum base_format_t {
    1399         TRACE_FORMAT_ERF          =1,
    1400         TRACE_FORMAT_PCAP         =2,
    1401         TRACE_FORMAT_PCAPFILE     =3,
    1402         TRACE_FORMAT_WAG          =4,
    1403         TRACE_FORMAT_RT           =5,
    1404         TRACE_FORMAT_LEGACY_ATM   =6,
    1405         TRACE_FORMAT_LEGACY_POS   =7,
    1406         TRACE_FORMAT_LEGACY_ETH   =8,
    1407         TRACE_FORMAT_LINUX_NATIVE =9,
    1408         TRACE_FORMAT_DUCK         =10,
    1409         TRACE_FORMAT_BPF          =11
    1410 };
    1411 
    14121451/** Gets the format type for a given packet.
    14131452 * @param packet        the packet opaque pointer
Note: See TracChangeset for help on using the changeset viewer.