Changeset 18442 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Mar 28, 2009 3:00:16 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/Pcap.cpp
r10755 r18442 85 85 { 86 86 uint64_t u64TS = RTTimeNanoTS() - StartNanoTS; 87 pHdr->ts_sec = (uint32_t)(u64TS / 1000000000);88 pHdr->ts_usec = (uint32_t)((u64TS / 1000) % 1000000);89 pHdr->incl_len = RT_MIN(cbFrame, cbMax);90 pHdr->orig_len = cbFrame;87 pHdr->ts_sec = (uint32_t)(u64TS / 1000000000); 88 pHdr->ts_usec = (uint32_t)((u64TS / 1000) % 1000000); 89 pHdr->incl_len = (uint32_t)RT_MIN(cbFrame, cbMax); 90 pHdr->orig_len = (uint32_t)cbFrame; 91 91 } 92 92
Note:
See TracChangeset
for help on using the changeset viewer.