Changeset 75923 in vbox
- Timestamp:
- Dec 3, 2018 7:10:10 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/Dhcpd/Config.cpp
r75648 r75923 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 RTCString strTrunkType; 645 if (!server->getAttributeValue("trunkType", &strTrunkType)) 646 throw ConfigFileError("DHCPServer/@trunkType missing"); 647 if (strTrunkType == "none") 648 m_enmTrunkType = kIntNetTrunkType_None; 649 else if (strTrunkType == "whatever") 650 m_enmTrunkType = kIntNetTrunkType_WhateverNone; 651 else if (strTrunkType == "netflt") 652 m_enmTrunkType = kIntNetTrunkType_NetFlt; 653 else if (strTrunkType == "netadp") 654 m_enmTrunkType = kIntNetTrunkType_NetAdp; 655 else 656 throw ConfigFileError(RTCStringFmt("Invalid DHCPServer/@trunkType value: %s", strTrunkType.c_str())); 657 639 658 getIPv4AddrAttribute(server, "IPAddress", &m_IPv4Address); 640 659 getIPv4AddrAttribute(server, "networkMask", &m_IPv4Netmask);
Note:
See TracChangeset
for help on using the changeset viewer.