Changeset 44824 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Feb 25, 2013 6:30:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp
r44528 r44824 4997 4997 case kIntNetTrunkType_None: 4998 4998 case kIntNetTrunkType_WhateverNone: 4999 #ifdef VBOX_WITH_NAT_SERVICE 5000 /* 5001 * Well, here we don't want load anything special, 5002 * just communicate between processes via internal network. 5003 */ 5004 case kIntNetTrunkType_SrvNat: 5005 #endif 4999 5006 return VINF_SUCCESS; 5000 5007 … … 5016 5023 #endif /* VBOXNETADP_DO_NOT_USE_NETFLT */ 5017 5024 break; 5018 case kIntNetTrunkType_SrvNat: 5019 pszName = "VBoxSrvNat"; 5025 #ifndef VBOX_WITH_NAT_SERVICE 5026 case kIntNetTrunkType_SrvNat: 5027 pszName = "VBoxSrvNat"; 5020 5028 break; 5029 #endif 5021 5030 } 5022 5031 … … 5477 5486 */ 5478 5487 int rc; 5479 if ( enmTrunkType == kIntNetTrunkType_WhateverNone 5480 || ( pCur->enmTrunkType == enmTrunkType 5481 && !strcmp(pCur->szTrunk, pszTrunk))) 5488 if ( enmTrunkType == kIntNetTrunkType_WhateverNone 5489 #ifdef VBOX_WITH_NAT_SERVICE 5490 || enmTrunkType == kIntNetTrunkType_SrvNat /* @todo: what does it mean */ 5491 #endif 5492 || ( pCur->enmTrunkType == enmTrunkType 5493 && !strcmp(pCur->szTrunk, pszTrunk))) 5482 5494 { 5483 5495 rc = intnetR0CheckOpenNetworkFlags(pCur, fFlags); … … 5575 5587 | INTNET_OPEN_FLAGS_TRUNK_WIRE_CHASTE_MODE; 5576 5588 if ( enmTrunkType == kIntNetTrunkType_WhateverNone 5589 #ifdef VBOX_WITH_NAT_SERVICE 5590 || enmTrunkType == kIntNetTrunkType_SrvNat /* simialar security */ 5591 #endif 5577 5592 || enmTrunkType == kIntNetTrunkType_None) 5578 5593 fDefFlags |= INTNET_OPEN_FLAGS_ACCESS_RESTRICTED; … … 5740 5755 case kIntNetTrunkType_None: 5741 5756 case kIntNetTrunkType_WhateverNone: 5757 #ifdef VBOX_WITH_NAT_SERVICE 5758 case kIntNetTrunkType_SrvNat: 5759 #endif 5742 5760 if (*pszTrunk) 5743 5761 return VERR_INVALID_PARAMETER;
Note:
See TracChangeset
for help on using the changeset viewer.