Lines Matching defs:OpenReq
1422 INTNETOPENREQ OpenReq;
1423 RT_ZERO(OpenReq);
1424 OpenReq.Hdr.cbReq = sizeof(OpenReq);
1425 OpenReq.Hdr.u32Magic = SUPVMMR0REQHDR_MAGIC;
1426 OpenReq.pSession = NIL_RTR0PTR;
1431 int rc = CFGMR3QueryString(pCfg, "Network", OpenReq.szNetwork, sizeof(OpenReq.szNetwork));
1435 strcpy(pThis->szNetwork, OpenReq.szNetwork);
1447 OpenReq.enmTrunkType = (INTNETTRUNKTYPE)u32TrunkType;
1452 rc = CFGMR3QueryString(pCfg, "Trunk", OpenReq.szTrunk, sizeof(OpenReq.szTrunk));
1454 OpenReq.szTrunk[0] = '\0';
1459 OpenReq.fFlags = 0;
1471 OpenReq.fFlags |= INTNET_OPEN_FLAGS_SHARED_MAC_ON_WIRE;
1482 OpenReq.fFlags |= INTNET_OPEN_FLAGS_ACCESS_RESTRICTED;
1484 OpenReq.fFlags |= INTNET_OPEN_FLAGS_ACCESS_PUBLIC;
1485 OpenReq.fFlags |= INTNET_OPEN_FLAGS_ACCESS_FIXED;
1502 OpenReq.fFlags |= INTNET_OPEN_FLAGS_REQUIRE_EXACT;
1514 OpenReq.fFlags |= INTNET_OPEN_FLAGS_REQUIRE_AS_RESTRICTIVE_POLICIES;
1531 INTNET_OPEN_FLAGS_ACCESS_FIXED, &OpenReq.fFlags);
1543 INTNET_OPEN_FLAGS_PROMISC_FIXED, &OpenReq.fFlags);
1554 INTNET_OPEN_FLAGS_PROMISC_FIXED, &OpenReq.fFlags);
1565 INTNET_OPEN_FLAGS_PROMISC_FIXED, &OpenReq.fFlags);
1580 INTNET_OPEN_FLAGS_IF_FIXED, &OpenReq.fFlags);
1596 INTNET_OPEN_FLAGS_TRUNK_FIXED, &OpenReq.fFlags);
1610 INTNET_OPEN_FLAGS_TRUNK_FIXED, &OpenReq.fFlags);
1617 rc = CFGMR3QueryU32(pCfg, "ReceiveBufferSize", &OpenReq.cbRecv);
1619 OpenReq.cbRecv = 318 * _1K ;
1632 rc = CFGMR3QueryU32(pCfg, "SendBufferSize", &OpenReq.cbSend);
1634 OpenReq.cbSend = RT_ALIGN_Z(VBOX_MAX_GSO_SIZE * 3, _1K);
1638 if (OpenReq.cbSend < 128)
1641 if (OpenReq.cbSend < VBOX_MAX_GSO_SIZE * 3)
1642 LogRel(("DrvIntNet: Warning! SendBufferSize=%u, Recommended minimum size %u butes.\n", OpenReq.cbSend, VBOX_MAX_GSO_SIZE * 4));
1671 if (OpenReq.fFlags & INTNET_OPEN_FLAGS_SHARED_MAC_ON_WIRE)
1687 OpenReq.fFlags |= INTNET_OPEN_FLAGS_WORKAROUND_1;
1690 pDrvIns->iInstance, OpenReq.szNetwork, OpenReq.enmTrunkType, OpenReq.szTrunk, OpenReq.fFlags,
1691 OpenReq.cbRecv, OpenReq.cbSend, fIgnoreConnectFailure));
1695 if ( !OpenReq.szTrunk[0]
1696 && OpenReq.enmTrunkType == kIntNetTrunkType_None
1701 OpenReq.enmTrunkType = kIntNetTrunkType_NetFlt;
1702 strcpy(OpenReq.szTrunk, &pThis->szNetwork[sizeof("if=") - 1]);
1705 if ( !OpenReq.szTrunk[0]
1706 && OpenReq.enmTrunkType == kIntNetTrunkType_None
1711 OpenReq.enmTrunkType = kIntNetTrunkType_NetFlt;
1712 OpenReq.fFlags |= INTNET_OPEN_FLAGS_SHARED_MAC_ON_WIRE;
1713 strcpy(OpenReq.szTrunk, &pThis->szNetwork[sizeof("wif=") - 1]);
1733 OpenReq.hIf = INTNET_HANDLE_INVALID;
1734 rc = PDMDrvHlpSUPCallVMMR0Ex(pDrvIns, VMMR0_DO_INTNET_OPEN, &OpenReq, sizeof(OpenReq));
1748 "network settings"), OpenReq.szTrunk);
1756 AssertRelease(OpenReq.hIf != INTNET_HANDLE_INVALID);
1757 pThis->hIf = OpenReq.hIf;