Changeset db84bb2 for lib/format_linux_int.c
- Timestamp:
- 02/28/17 13:49:40 (4 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, master, ndag_format, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 6fb691b, 9d29d1e
- Parents:
- dea08f1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_linux_int.c
r5e3f16c rdb84bb2 286 286 } 287 287 288 288 289 /* Buffer contains all of our packet (including our custom header) so 289 290 * we just need to get prepare_packet to set all our packet pointers … … 294 295 return -1; 295 296 297 if (hdr->timestamptype == TS_TIMEVAL) { 298 packet->order = (((uint64_t)hdr->tv.tv_sec) << 32) 299 + ((((uint64_t)hdr->tv.tv_usec) << 32) /1000000); 300 } else if (hdr->timestamptype == TS_TIMESPEC) { 301 packet->order = (((uint64_t)hdr->ts.tv_sec) << 32) 302 + ((((uint64_t)hdr->ts.tv_nsec) << 32) /1000000000); 303 } else { 304 packet->order = 0; 305 } 306 307 if (packet->order <= stream->last_timestamp) { 308 packet->order = stream->last_timestamp + 1; 309 } 310 311 stream->last_timestamp = packet->order; 312 296 313 return hdr->wirelen+sizeof(*hdr); 297 314 }
Note: See TracChangeset
for help on using the changeset viewer.