VirtualBox

Changeset 11056 in vbox for trunk


Ignore:
Timestamp:
Aug 1, 2008 1:33:39 AM (16 years ago)
Author:
vboxsync
Message:

tstIntNet-1: Added a -m / --mac-sharing option for testing the shared mac on the wire feature (wireless).

File:
1 edited

Legend:

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

    r11051 r11056  
    552552        { "--file",         'f', RTGETOPT_REQ_STRING },
    553553        { "--interface",    'i', RTGETOPT_REQ_STRING },
     554        { "--mac-sharing",  'm', RTGETOPT_REQ_NOTHING },
    554555        { "--network",      'n', RTGETOPT_REQ_STRING },
    555556        { "--promiscuous",  'p', RTGETOPT_REQ_NOTHING },
     
    572573    const char *pszIf = "em0";
    573574#endif
     575    bool        fMacSharing = false;
     576    const char *pszNetwork = "tstIntNet-1";
    574577    bool        fPromiscuous = false;
    575     const char *pszNetwork = "tstIntNet-1";
    576578    uint32_t    cbRecv = 0;
    577579    uint32_t    cbSend = 0;
     
    619621                break;
    620622
     623            case 'm':
     624                fMacSharing = true;
     625                break;
     626
    621627            case 'n':
    622628                pszNetwork = Value.psz;
     
    726732    strncpy(OpenReq.szTrunk, pszIf, sizeof(OpenReq.szTrunk));
    727733    OpenReq.enmTrunkType = kIntNetTrunkType_NetFlt;
    728     OpenReq.fFlags = 0;
     734    OpenReq.fFlags = fMacSharing ? INTNET_OPEN_FLAGS_SHARED_MAC_ON_WIRE : 0;
    729735    OpenReq.cbSend = cbSend;
    730736    OpenReq.cbRecv = cbRecv;
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