Changeset c69b593
- Timestamp:
- 07/27/10 17:04:51 (11 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:
- d08c691
- Parents:
- 9d5062a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_linux.c
rd7e8e67 rc69b593 513 513 && cmsg->cmsg_type == SO_TIMESTAMP 514 514 && cmsg->cmsg_len <= CMSG_LEN(sizeof(struct timeval))) { 515 hdr->tv.tv_sec = ((struct timeval*)CMSG_DATA(cmsg))->tv_sec; 516 hdr->tv.tv_usec = ((struct timeval*)CMSG_DATA(cmsg))->tv_usec; 515 516 struct timeval *tv; 517 tv = (struct timeval *)CMSG_DATA(cmsg); 518 519 520 hdr->tv.tv_sec = tv->tv_sec; 521 hdr->tv.tv_usec = tv->tv_usec; 517 522 hdr->timestamptype = TS_TIMEVAL; 518 523 break; … … 522 527 && cmsg->cmsg_type == SO_TIMESTAMPNS 523 528 && cmsg->cmsg_len <= CMSG_LEN(sizeof(struct timespec))) { 524 hdr->ts.tv_sec = ((struct timespec*)CMSG_DATA(cmsg))->tv_sec; 525 hdr->ts.tv_nsec = ((struct timespec*)CMSG_DATA(cmsg))->tv_nsec; 529 530 struct timespec *tv; 531 tv = (struct timespec *)CMSG_DATA(cmsg); 532 533 hdr->ts.tv_sec = tv->tv_sec; 534 hdr->ts.tv_nsec = tv->tv_nsec; 526 535 hdr->timestamptype = TS_TIMESPEC; 527 536 break;
Note: See TracChangeset
for help on using the changeset viewer.