- Timestamp:
- Aug 1, 2008 1:33:39 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/testcase/tstIntNet-1.cpp
r11051 r11056 552 552 { "--file", 'f', RTGETOPT_REQ_STRING }, 553 553 { "--interface", 'i', RTGETOPT_REQ_STRING }, 554 { "--mac-sharing", 'm', RTGETOPT_REQ_NOTHING }, 554 555 { "--network", 'n', RTGETOPT_REQ_STRING }, 555 556 { "--promiscuous", 'p', RTGETOPT_REQ_NOTHING }, … … 572 573 const char *pszIf = "em0"; 573 574 #endif 575 bool fMacSharing = false; 576 const char *pszNetwork = "tstIntNet-1"; 574 577 bool fPromiscuous = false; 575 const char *pszNetwork = "tstIntNet-1";576 578 uint32_t cbRecv = 0; 577 579 uint32_t cbSend = 0; … … 619 621 break; 620 622 623 case 'm': 624 fMacSharing = true; 625 break; 626 621 627 case 'n': 622 628 pszNetwork = Value.psz; … … 726 732 strncpy(OpenReq.szTrunk, pszIf, sizeof(OpenReq.szTrunk)); 727 733 OpenReq.enmTrunkType = kIntNetTrunkType_NetFlt; 728 OpenReq.fFlags = 0;734 OpenReq.fFlags = fMacSharing ? INTNET_OPEN_FLAGS_SHARED_MAC_ON_WIRE : 0; 729 735 OpenReq.cbSend = cbSend; 730 736 OpenReq.cbRecv = cbRecv;
Note:
See TracChangeset
for help on using the changeset viewer.