Changeset 14844 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Dec 1, 2008 10:07:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNetSniffer.cpp
r11284 r14844 325 325 pThis->pDrvIns = pDrvIns; 326 326 pThis->File = NIL_RTFILE; 327 pThis->StartNanoTS = /*RTTimeProgramNanoTS() - */ RTTimeNanoTS(); 327 /* The pcap file *must* start at time offset 0,0. */ 328 pThis->StartNanoTS = RTTimeNanoTS() - RTTimeProgramNanoTS(); 328 329 /* IBase */ 329 330 pDrvIns->IBase.pfnQueryInterface = drvNetSnifferQueryInterface; … … 414 415 /* 415 416 * Write pcap header. 416 */ 417 PcapFileHdr(pThis->File, pThis->StartNanoTS); 417 * Some time is done since capturing pThis->StartNanoTS so capture the current time again. 418 */ 419 PcapFileHdr(pThis->File, RTTimeNanoTS()); 418 420 419 421 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.