Changeset 24ca459
- Timestamp:
- 09/16/11 10:13:25 (9 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:
- f258932
- Parents:
- 204872da
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_pcapfile.c
r5f329ab r24ca459 137 137 138 138 139 static uint16_t swaps(libtrace_t *libtrace, uint16_t num)139 static inline uint16_t swaps(libtrace_t *libtrace, uint16_t num) 140 140 { 141 141 /* To deal with open_dead traces that might try and use this … … 152 152 } 153 153 154 static uint32_t swapl(libtrace_t *libtrace, uint32_t num)154 static inline uint32_t swapl(libtrace_t *libtrace, uint32_t num) 155 155 { 156 156 /* To deal with open_dead traces that might try and use this … … 380 380 return -1; 381 381 } 382 382 383 /* We may as well cache this value now, seeing as we already had to 384 * look it up */ 385 packet->capture_length = bytes_to_read; 383 386 return sizeof(libtrace_pcapfile_pkt_hdr_t) + bytes_to_read; 384 387 }
Note: See TracChangeset
for help on using the changeset viewer.