VirtualBox

Ignore:
Timestamp:
Apr 27, 2010 6:36:48 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60675
Message:

NAT: introduces management routines of NAT libalias core. (see xTracker/#4843 for details)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r28764 r28787  
    18801880            pelmDNS->getAttributeValue("use-host-resolver", nic.nat.fDnsUseHostResolver);
    18811881        }
     1882        const xml::ElementNode *pelmAlias;
     1883        if ((pelmAlias = elmMode.findChildElement("Alias")))
     1884        {
     1885            pelmAlias->getAttributeValue("logging", nic.nat.fAliasLog);
     1886            pelmAlias->getAttributeValue("proxy-only", nic.nat.fAliasProxyOnly);
     1887            pelmAlias->getAttributeValue("use-same-ports", nic.nat.fAliasUseSamePorts);
     1888        }
    18821889        const xml::ElementNode *pelmTFTP;
    18831890        if ((pelmTFTP = elmMode.findChildElement("TFTP")))
     
    36063613            pelmDNS->setAttribute("use-proxy", nic.nat.fDnsProxy);
    36073614            pelmDNS->setAttribute("use-host-resolver", nic.nat.fDnsUseHostResolver);
     3615
     3616            xml::ElementNode *pelmAlias;
     3617            pelmAlias = pelmNAT->createChild("Alias");
     3618            pelmAlias->setAttribute("logging", nic.nat.fAliasLog);
     3619            pelmAlias->setAttribute("proxy-only", nic.nat.fAliasProxyOnly);
     3620            pelmAlias->setAttribute("use-same-ports", nic.nat.fAliasUseSamePorts);
     3621
    36083622            if (   nic.nat.strTftpPrefix.length()
    36093623                || nic.nat.strTftpBootFile.length()
     
    40214035                     || netit->nat.fDnsProxy
    40224036                     || netit->nat.fDnsUseHostResolver
     4037                     || !netit->nat.fAliasLog
     4038                     || !netit->nat.fAliasProxyOnly
     4039                     || !netit->nat.fAliasUseSamePorts
    40234040                     || netit->nat.strTftpPrefix.length()
    40244041                     || netit->nat.strTftpBootFile.length()
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