Changeset 6dbc47a for lib/rt_protocol.h
- Timestamp:
- 02/21/06 15:48:53 (16 years ago)
- 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:
- 9ff68ff
- Parents:
- 1b4901a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/rt_protocol.h
r1fbd938 r6dbc47a 7 7 #define COLLECTOR_PORT 3435 8 8 9 #define RT_MAX_HDR_SIZE 256 10 #define MAX_SEQUENCE 2147483647 11 9 12 /* Type field definitions */ 13 /* NOTE: RT_DATA should always be zero */ 10 14 enum rt_field_t { 11 RT_ HELLO =0, /* Connection accepted*/12 RT_ DATA =1, /* Libtrace data packet*/15 RT_DATA =0, /* Libtrace data packet */ 16 RT_HELLO =1, /* Connection accepted */ 13 17 RT_START =2, /* Request for data transmission to begin */ 14 18 RT_ACK =3, /* Data acknowledgement */ … … 23 27 }; 24 28 25 /* Format field definitions */ 26 enum rt_format_t { 27 RT_FORMAT_ERF =1, 28 RT_FORMAT_PCAP =2, 29 RT_FORMAT_WAG =3 30 }; 31 32 typedef struct fifo_state { 29 typedef struct fifo_info { 33 30 uint64_t in; 34 31 uint64_t out; … … 36 33 uint64_t length; 37 34 uint64_t used; 38 } fifo_ state_t;35 } fifo_info_t; 39 36 40 37 /* RT packet header */ … … 46 43 typedef struct rt_data { 47 44 uint16_t format; 48 char *data;45 uint32_t sequence; 49 46 } rt_data_t; 50 47 48 /* TODO: Reorganise this struct once more hello info is added */ 51 49 typedef struct rt_hello { 52 50 uint8_t reliable; 53 51 } rt_hello_t; 54 52 … … 58 56 59 57 typedef struct rt_ack { 60 uint 64_t timestamp;58 uint32_t sequence; 61 59 } rt_ack_t; 62 60 63 61 typedef struct rt_status { 64 fifo_ state_t fifo_status;62 fifo_info_t fifo_status; 65 63 } rt_status_t; 66 64
Note: See TracChangeset
for help on using the changeset viewer.