VirtualBox

Ignore:
Timestamp:
Apr 9, 2010 11:49:05 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59863
Message:

Main,NAT: Always pass the NAT network via CFGM. Use the network derived from the slot number as default.

File:
1 edited

Legend:

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

    r28130 r28138  
    25992599            {
    26002600                rc = CFGMR3InsertStringW(pCfg, "Network", str);         RC_CHECK();
     2601            }
     2602            else
     2603            {
     2604                ULONG uSlot;
     2605                hrc = aNetworkAdapter->COMGETTER(Slot)(&uSlot);         H();
     2606                rc = CFGMR3InsertStringF(pCfg, "Network", "10.0.%d.0/24", uSlot+2); RC_CHECK();
    26012607            }
    26022608            STR_FREE();
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