Changeset afd0b73 for lib/rt_protocol.h


Ignore:
Timestamp:
02/27/06 14:19:41 (15 years ago)
Author:
Shane Alcock <salcock@…>
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:
ab4cb04
Parents:
9de8150
Message:

Changed rt protocol to not require subheaders

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/rt_protocol.h

    r6dbc47a rafd0b73  
    1111
    1212/* Type field definitions */
    13 /* NOTE: RT_DATA should always be zero */
    1413enum rt_field_t {
    15  RT_DATA        =0,     /* Libtrace data packet */
    1614 RT_HELLO       =1,     /* Connection accepted */
    1715 RT_START       =2,     /* Request for data transmission to begin */
     
    2422 RT_PAUSE       =9,     /* Request server to suspend sending data */
    2523 RT_PAUSE_ACK   =10,    /* Server is paused message */
    26  RT_OPTION      =11     /* Option request */
     24 RT_OPTION      =11,    /* Option request */
     25 
     26 RT_DATA_ERF            =12,    /* Erf data packet */
     27 RT_DATA_PCAP           =13,    /* Pcap data packet */
     28 RT_DATA_WAG            =14,    /* Wag data packet */
     29 RT_DATA_LEGACY_ATM     =15,    /* Legacy ATM packet */
     30 RT_DATA_LEGACY_POS     =16,    /* Legacy POS packet */
     31 RT_DATA_LEGACY_ETH     =17     /* Legacy ETH packet */
    2732};
    2833
     
    3944        enum rt_field_t type;
    4045        uint16_t length;
     46        uint32_t sequence;
    4147} rt_header_t;
    42 
    43 typedef struct rt_data {
    44         uint16_t format;
    45         uint32_t sequence;
    46 } rt_data_t;
    4748
    4849/* TODO: Reorganise this struct once more hello info is added */
Note: See TracChangeset for help on using the changeset viewer.