Changeset 76007 in vbox for trunk/src/VBox/NetworkServices/Dhcpd/Config.cpp
- Timestamp:
- Dec 6, 2018 9:51:03 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/Dhcpd/Config.cpp
r75923 r76007 637 637 setNetwork(strNetworkName.c_str()); 638 638 639 RTCString strTrunk;640 if (!server->getAttributeValue("trunkName", &strTrunk))641 throw ConfigFileError("DHCPServer/@trunkName missing");642 m_strTrunk = strTrunk.c_str();643 644 639 RTCString strTrunkType; 645 640 if (!server->getAttributeValue("trunkType", &strTrunkType)) … … 656 651 throw ConfigFileError(RTCStringFmt("Invalid DHCPServer/@trunkType value: %s", strTrunkType.c_str())); 657 652 653 if ( m_enmTrunkType == kIntNetTrunkType_NetFlt 654 || m_enmTrunkType == kIntNetTrunkType_NetAdp) 655 { 656 RTCString strTrunk; 657 if (!server->getAttributeValue("trunkName", &strTrunk)) 658 throw ConfigFileError("DHCPServer/@trunkName missing"); 659 m_strTrunk = strTrunk.c_str(); 660 } 661 else 662 m_strTrunk = ""; 663 658 664 getIPv4AddrAttribute(server, "IPAddress", &m_IPv4Address); 659 665 getIPv4AddrAttribute(server, "networkMask", &m_IPv4Netmask);
Note:
See TracChangeset
for help on using the changeset viewer.