VirtualBox

Changeset 48538 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Sep 19, 2013 3:17:43 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89083
Message:

Main/NetworkAdapter+Machine+Appliance+SystemProperties+Medium+Console+Settings+IDL: make NAT networking a separate network attachment type which improves the user experience, store the necessary settings, plus changing the design of the methods which will move images and entire VMs, they lacked a progress object
Frontends/VirtualBox: adapted fully, can configure NAT networks with proper drop down list support
Frontends/VBoxManage: also supports NAT networks completely, and adds the long missing code to list intnets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r48528 r48538  
    48574857            }
    48584858
     4859            case NetworkAttachmentType_NATNetwork:
     4860            {
     4861                hrc = aNetworkAdapter->COMGETTER(NATNetwork)(bstr.asOutParam());            H();
     4862                if (!bstr.isEmpty())
     4863                {
     4864                    /** @todo add intnet prefix to separate namespaces, and add trunk if dealing with vboxnatX */
     4865                    InsertConfigString(pLunL0, "Driver", "IntNet");
     4866                    InsertConfigNode(pLunL0, "Config", &pCfg);
     4867                    InsertConfigString(pCfg, "Network", bstr);
     4868                    InsertConfigInteger(pCfg, "TrunkType", kIntNetTrunkType_WhateverNone);
     4869                    InsertConfigString(pCfg, "IfPolicyPromisc", pszPromiscuousGuestPolicy);
     4870                    networkName = bstr;
     4871                    trunkType = Bstr(TRUNKTYPE_WHATEVER);
     4872                }
     4873                break;
     4874            }
     4875
    48594876            default:
    48604877                AssertMsgFailed(("should not get here!\n"));
     
    48754892            case NetworkAttachmentType_NAT:
    48764893            case NetworkAttachmentType_Generic:
     4894            case NetworkAttachmentType_NATNetwork:
    48774895            {
    48784896                if (SUCCEEDED(hrc) && SUCCEEDED(rc))
Note: See TracChangeset for help on using the changeset viewer.

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