- Timestamp:
- 11/24/05 12:00:55 (17 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:
- 79dbcef
- Parents:
- f66a4933
- Location:
- lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_erf.c
rf66a4933 r9cecdb2 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; -
lib/libtrace.h
r5a67294 r9cecdb2 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.