Changeset 16854 in vbox for trunk/src/VBox
- Timestamp:
- Feb 17, 2009 3:50:47 PM (16 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvIntNet.cpp
r15541 r16854 745 745 bool f; 746 746 747 __asm {int 3}; 748 747 749 /* 748 750 * Init the static parts. … … 1026 1028 1027 1029 #elif defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT) 1028 if (OpenReq.enmTrunkType == kIntNetTrunkType_NetFlt) 1030 if (OpenReq.enmTrunkType == kIntNetTrunkType_NetFlt 1031 || OpenReq.enmTrunkType == kIntNetTrunkType_NetTap) 1029 1032 { 1030 1033 # ifndef VBOX_NETFLT_ONDEMAND_BIND … … 1033 1036 * tell the filter driver to init VBoxNetFlt functionality. 1034 1037 */ 1035 rc = drvIntNetWinConstruct(pDrvIns, pCfgHandle );1038 rc = drvIntNetWinConstruct(pDrvIns, pCfgHandle, OpenReq.enmTrunkType); 1036 1039 AssertLogRelMsgRCReturn(rc, ("drvIntNetWinConstruct failed, rc=%Rrc", rc), rc); 1037 1040 # endif 1038 1041 1039 /* 1040 * <Describe what this does here or/and in the function docs of drvIntNetWinIfGuidToBindName>. 1041 */ 1042 char szBindName[INTNET_MAX_TRUNK_NAME]; 1043 rc = drvIntNetWinIfGuidToBindName(OpenReq.szTrunk, szBindName, INTNET_MAX_TRUNK_NAME); 1044 AssertLogRelMsgRCReturn(rc, ("drvIntNetWinIfGuidToBindName failed, rc=%Rrc", rc), rc); 1045 strcpy(OpenReq.szTrunk, szBindName); 1042 if (OpenReq.enmTrunkType == kIntNetTrunkType_NetFlt) 1043 { 1044 /* 1045 * <Describe what this does here or/and in the function docs of drvIntNetWinIfGuidToBindName>. 1046 */ 1047 char szBindName[INTNET_MAX_TRUNK_NAME]; 1048 rc = drvIntNetWinIfGuidToBindName(OpenReq.szTrunk, szBindName, INTNET_MAX_TRUNK_NAME); 1049 AssertLogRelMsgRCReturn(rc, ("drvIntNetWinIfGuidToBindName failed, rc=%Rrc", rc), rc); 1050 strcpy(OpenReq.szTrunk, szBindName); 1051 } 1052 else 1053 { 1054 strcpy(OpenReq.szTrunk, "dummy name"); 1055 } 1046 1056 } 1047 1057 #endif /* WINDOWS && NETFLT */ -
trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp
r16750 r16854 4123 4123 4124 4124 case kIntNetTrunkType_NetFlt: 4125 case kIntNetTrunkType_NetTap: 4125 4126 AssertReturn(pszTrunk, VERR_INVALID_PARAMETER); 4126 4127 break; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetwork.cpp
r16509 r16854 355 355 mCbNAType->setItemData (3, 356 356 mCbNAType->itemText(3), Qt::ToolTipRole); 357 #if def RT_OS_LINUX357 #if defined(RT_OS_LINUX) || defined (RT_OS_WINDOWS) 358 358 mCbNAType->insertItem (4, 359 359 vboxGlobal().toString (KNetworkAttachmentType_HostOnly)); -
trunk/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk
r16803 r16854 214 214 endif #ifeq ($(KBUILD_TARGET), win) 215 215 216 # 217 # VBoxNetAdp.sys - The VirtualBox Adapter miniport driver. 218 # 219 SYSMODS.win += VBoxNetAdp 220 VBoxNetAdp_TEMPLATE = VBOXR0DRV 221 VBoxNetAdp_INST = $(INST_VBOXNETFLT) 222 if defined(VBOX_SIGNING_MODE) 223 VBoxNetAdp_NOINST = true 224 endif 225 VBoxNetAdp_DEFS = IN_RT_R0 VBOX_SVN_REV=$(VBOX_SVN_REV) IN_SUP_STATIC 226 VBoxNetAdp_SDKS = W2K3DDK WINPSDKINCS 227 VBoxNetAdp_INCS := $(PATH_SUB_CURRENT) 228 VBoxNetAdp_SOURCES = \ 229 VBoxNetFlt.c \ 230 win/VBoxNetFlt-win.c \ 231 win/VBoxNetFltMp-win.c \ 232 win/VBoxNetFlt-win.rc 233 VBoxNetAdp_DEFS += VBOXNETFLT_STATIC_CONFIG VBOX_TAPMINIPORT 234 VBoxNetAdp_LDFLAGS.win.x86 = -Entry:DriverEntry@8 235 VBoxNetAdp_LDFLAGS.win.amd64 = -Entry:DriverEntry 236 VBoxNetAdp_SOURCES.win.amd64 += win/VBoxNetFltA-win.asm 237 VBoxNetAdp_DEFS.win.amd64 += RT_WITH_W64_UNWIND_HACK 238 VBoxNetAdp_LIBS.win = \ 239 $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \ 240 $(PATH_SDK_W2K3DDK_LIB)/hal.lib \ 241 $(PATH_SDK_W2K3DDK_LIB)/ndis.lib \ 242 $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) 243 VBoxNetAdp_LIBS = \ 244 $(PATH_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB) 245 246 247 INSTALLS.win += VBoxNetAdp-inf 248 VBoxNetAdp-inf_INST = $(INST_BIN) 249 VBoxNetAdp-inf_MODE = a+r,u+w 250 VBoxNetAdp-inf_SOURCES = \ 251 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.inf 252 VBoxNetAdp-inf_CLEAN = $(VBoxNetAdp-inf_SOURCES) 253 VBoxNetAdp-inf_BLDDIRS = $(PATH_TARGET)/VBoxNetAdpCat.dir 254 255 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.inf: $(PATH_SUB_CURRENT)/win/VBoxNetAdp.inf $(MAKEFILE_CURRENT) | $$(dir $$@) 256 $(call MSG_GENERATE,VBoxNetAdp-inf,$@,$<) 257 $(call VBOX_EDIT_INF_FN,$<,$@) 258 259 ifdef VBOX_SIGNING_MODE 260 VBoxNetAdp-inf_SOURCES += \ 261 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.sys \ 262 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.cat 263 264 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.sys: $$(TARGET_VBoxNetAdp) | $$(dir $$@) 265 $(INSTALL) -m 644 $< $(@D) 266 267 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.cat: \ 268 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.sys \ 269 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.inf 270 $(call MSG_TOOL,Inf2Cat,VBoxNetFlt-inf,$@,$<) 271 $(call VBOX_MAKE_CAT_FN, $(@D),$@) 272 273 endif # ifdef VBOX_SIGNING_MODE 274 216 275 else if1of ($(KBUILD_TARGET), linux solaris) ## @todo merge this with the mixed case stuff. 217 276 # -
trunk/src/VBox/HostDrivers/VBoxNetFlt/VBoxNetFlt.c
r16193 r16854 1037 1037 AssertRCReturn(rc, rc); 1038 1038 1039 #if defined(VBOX_TAPMINIPORT) && defined(RT_OS_WINDOWS) 1040 /* temporary hack to pick up the first adapter */ 1041 pCur = pGlobals->pInstanceHead; 1042 #else 1039 1043 pCur = vboxNetFltFindInstanceLocked(pGlobals, pszName); 1044 #endif 1040 1045 if (pCur) 1041 1046 { … … 1268 1273 pGlobals->TrunkFactory.pfnRelease = vboxNetFltFactoryRelease; 1269 1274 pGlobals->TrunkFactory.pfnCreateAndConnect = vboxNetFltFactoryCreateAndConnect; 1270 1275 #if defined(RT_OS_WINDOWS) && defined(VBOX_TAPMINIPORT) 1276 strcpy(pGlobals->SupDrvFactory.szName, "VBoxNetTap"); 1277 #else 1271 1278 strcpy(pGlobals->SupDrvFactory.szName, "VBoxNetFlt"); 1279 #endif 1272 1280 pGlobals->SupDrvFactory.pfnQueryFactoryInterface = vboxNetFltQueryFactoryInterface; 1273 1281 -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r16853 r16854 1638 1638 rc = CFGMR3InsertNode(pLunL0, "Config", &pCfg); RC_CHECK(); 1639 1639 rc = CFGMR3InsertString(pCfg, "Trunk", "vboxnet0"); RC_CHECK(); 1640 rc = CFGMR3InsertString(pCfg, "Network", "HostInterfaceNetworking-vboxnet0"); RC_CHECK(); 1641 #ifdef RT_OS_WINDOWS 1642 /* TODO: set the proper Trunk and Network values, currently the driver uses the first adapter instance */ 1643 rc = CFGMR3InsertInteger(pCfg, "TrunkType", kIntNetTrunkType_NetTap); RC_CHECK(); 1644 #else 1640 1645 rc = CFGMR3InsertInteger(pCfg, "TrunkType", kIntNetTrunkType_NetFlt); RC_CHECK(); 1641 rc = CFGMR3InsertString(pCfg, "Network", "HostInterfaceNetworking-vboxnet0"); RC_CHECK(); 1646 #endif 1642 1647 break; 1643 1648 }
Note:
See TracChangeset
for help on using the changeset viewer.