- Timestamp:
- 08/02/10 15:47:08 (12 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:
- 4bbe9bd
- Parents:
- 7aebb85
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_duck.c
rb5af22c r9b097ea 32 32 */ 33 33 34 #include "config.h" 34 35 #include "libtrace.h" 35 36 #include "libtrace_int.h" 36 37 #include "format_helper.h" 37 #include "config.h"38 38 #include "wandio.h" 39 39 #include <stdlib.h> … … 249 249 250 250 int numbytes = 0; 251 uint32_t duck_version; 252 251 253 if (packet->type != TRACE_RT_DUCK_2_4 252 254 && packet->type != TRACE_RT_DUCK_2_5) { … … 260 262 if (OUTPUT->dag_version == 0) { 261 263 /* Writing the DUCK version will help with reading it back in later! */ 262 if ((numbytes = wandio_wwrite(OUTPUT->file, &packet->type, 263 sizeof(packet->type))) != sizeof(uint32_t)){ 264 duck_version = bswap_host_to_le32(packet->type); 265 if ((numbytes = wandio_wwrite(OUTPUT->file, &duck_version, 266 sizeof(duck_version))) != sizeof(uint32_t)){ 264 267 trace_set_err_out(libtrace, errno, 265 268 "Writing DUCK version failed");
Note: See TracChangeset
for help on using the changeset viewer.