Changeset 515
- Timestamp:
- 11/24/05 12:00:55 (8 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
lib/format_erf.c (modified) (2 diffs)
-
lib/libtrace.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r508 r515 29 29 ## 30 30 31 - Version 2.0.25 (unreleased)31 - Version 2.0.25 32 32 * updated rtclient_read_packet to be compatible with new rt protocol 33 33 * rtclient input now correctly ignores packets with type = RT_MSG 34 34 * erf_write_packet now deals with rxerrors appropriately 35 * building without zlib support should now work properly; stdin 36 still doesn't work nicely in this case however 37 * build fixes for openbsd 38 * local lt_inttypes.h generated for PRIu64 macros etc 39 * setting __attribute__((packed)) on all structs 40 * build fixes for tracereport and testing for libgdc 41 35 42 36 43 - Version 2.0.24 -
trunk/lib/format_erf.c
r514 r515 674 674 // Need to skip this packet as it is a message packet 675 675 tracefifo_out_update(libtrace->fifo, packet->size); 676 tracefifo_ack_update(libtrace->fifo, packet->size + (sizeof(uint32_t) * 2)); 676 tracefifo_ack_update(libtrace->fifo, packet->size + 677 sizeof(uint32_t) + 678 sizeof(libtrace_packet_status_t)); 677 679 continue; 678 680 } … … 691 693 tracefifo_out_update(libtrace->fifo,packet->size); 692 694 693 tracefifo_ack_update(libtrace->fifo,packet->size + (sizeof(uint32_t) * 2)); 695 tracefifo_ack_update(libtrace->fifo,packet->size + 696 sizeof(uint32_t) + 697 sizeof(libtrace_packet_status_t)); 694 698 695 699 //packet->size = numbytes; -
trunk/lib/libtrace.h
r485 r515 87 87 typedef struct libtrace_filter_t libtrace_filter_t; 88 88 89 /** Structure holding status information for a packet */ 90 typedef struct libtrace_packet_status { 91 uint8_t type; 92 uint8_t reserved; 93 uint16_t message; 94 95 } libtrace_packet_status_t; 96 89 97 /** Structure holding information about a packet */ 90 98 #define LIBTRACE_PACKET_BUFSIZE 65536 … … 94 102 char buffer[LIBTRACE_PACKET_BUFSIZE]; 95 103 size_t size; 96 struct { 97 uint8_t type; 98 uint8_t reserved; 99 uint16_t message; 100 } status; 104 libtrace_packet_status_t status; 101 105 } __attribute__ ((packed)) libtrace_packet_t; 102 106
Note: See TracChangeset
for help on using the changeset viewer.
