VirtualBox

Changeset 87925 in vbox


Ignore:
Timestamp:
Mar 2, 2021 8:12:02 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143015
Message:

VBoxIntnetPcap: Fix timestamps. bugref:9959.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxIntnetPcap/VBoxIntnetPcap.cpp

    r87924 r87925  
    3636IntNetIf g_net;
    3737PRTSTREAM g_pStrmOut;
     38uint64_t g_StartNanoTS;
    3839bool g_fPacketBuffered;
    3940uint64_t g_u64Count;
     
    193194                              strNetworkName.c_str(), rc);
    194195
    195     rc = PcapStreamHdr(g_pStrmOut, RTTimeNanoTS());
     196    g_StartNanoTS = RTTimeNanoTS();
     197    rc = PcapStreamHdr(g_pStrmOut, g_StartNanoTS);
    196198    if (RT_FAILURE(rc))
    197199        return RTMsgErrorExit(RTEXITCODE_FAILURE,
     
    225227    RT_NOREF(pvUser);
    226228
    227     rc = PcapStreamFrame(g_pStrmOut, RTTimeNanoTS(),
     229    rc = PcapStreamFrame(g_pStrmOut, g_StartNanoTS,
    228230                         pvFrame, cbFrame, g_cbSnapLen);
    229231    if (RT_FAILURE(rc)) {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette