VirtualBox

Changeset 11470 in vbox


Ignore:
Timestamp:
Aug 18, 2008 6:13:53 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34929
Message:

testcase/tstIntNet-1: fixed swapped dst and src mac while printing incoming packets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/testcase/tstIntNet-1.cpp

    r11316 r11470  
    481481                    RTStrmPrintf(pFileText, "%3RU64.%09u: cb=%04x dst=%.6Rhxs src=%.6Rhxs type=%04x%s\n",
    482482                                 NanoTS / 1000000000, (uint32_t)(NanoTS % 1000000000),
    483                                  cbFrame, &pEthHdr->SrcMac, &pEthHdr->DstMac, RT_BE2H_U16(pEthHdr->EtherType),
     483                                 cbFrame, &pEthHdr->DstMac, &pEthHdr->SrcMac, RT_BE2H_U16(pEthHdr->EtherType),
    484484                                 !memcmp(&pEthHdr->DstMac, pSrcMac, sizeof(*pSrcMac)) ? " Mine!" : "");
    485485                tstIntNetTestFrame(pvFrame, cbFrame, pFileText);
Note: See TracChangeset for help on using the changeset viewer.

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