Changeset 16854 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Feb 17, 2009 3:50:47 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 42961
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 2 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;
Note:
See TracChangeset
for help on using the changeset viewer.