VirtualBox

Changeset 44824 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Feb 25, 2013 6:30:42 PM (12 years ago)
Author:
vboxsync
Message:

Network-service for lwip-driven proxy.
additionally enables SrvNat trunk type for Nat services.
Note: all changes disabled by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp

    r44528 r44824  
    49974997        case kIntNetTrunkType_None:
    49984998        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
    49995006            return VINF_SUCCESS;
    50005007
     
    50165023#endif /* VBOXNETADP_DO_NOT_USE_NETFLT */
    50175024            break;
    5018         case kIntNetTrunkType_SrvNat:
    5019             pszName = "VBoxSrvNat";
     5025#ifndef VBOX_WITH_NAT_SERVICE   
     5026        case kIntNetTrunkType_SrvNat:
     5027            pszName = "VBoxSrvNat";
    50205028            break;
     5029#endif
    50215030    }
    50225031
     
    54775486             */
    54785487            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)))
    54825494            {
    54835495                rc = intnetR0CheckOpenNetworkFlags(pCur, fFlags);
     
    55755587                       | INTNET_OPEN_FLAGS_TRUNK_WIRE_CHASTE_MODE;
    55765588    if (   enmTrunkType == kIntNetTrunkType_WhateverNone
     5589#ifdef VBOX_WITH_NAT_SERVICE
     5590        || enmTrunkType == kIntNetTrunkType_SrvNat /* simialar security */
     5591#endif
    55775592        || enmTrunkType == kIntNetTrunkType_None)
    55785593        fDefFlags |= INTNET_OPEN_FLAGS_ACCESS_RESTRICTED;
     
    57405755        case kIntNetTrunkType_None:
    57415756        case kIntNetTrunkType_WhateverNone:
     5757#ifdef VBOX_WITH_NAT_SERVICE
     5758        case kIntNetTrunkType_SrvNat:
     5759#endif
    57425760            if (*pszTrunk)
    57435761                return VERR_INVALID_PARAMETER;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette