Changeset 79846 in vbox
- Timestamp:
- Jul 17, 2019 9:19:20 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/DHCPConfigImpl.cpp
r79845 r79846 602 602 if (it->second.enmEncoding == DHCPOptionEncoding_Normal) 603 603 return a_rDst.assignEx(it->second.strValue); 604 return setError(VBOX_E_OBJECT_NOT_FOUND, tr("DHCP option D hcpOpt_SubnetMask is not in a legacy encoding"));605 } 606 return setError(VBOX_E_OBJECT_NOT_FOUND, tr("DHCP option D hcpOpt_SubnetMask was not found"));604 return setError(VBOX_E_OBJECT_NOT_FOUND, tr("DHCP option DHCPOption_SubnetMask is not in a legacy encoding")); 605 } 606 return setError(VBOX_E_OBJECT_NOT_FOUND, tr("DHCP option DHCPOption_SubnetMask was not found")); 607 607 } 608 608 … … 628 628 629 629 /** 630 * Overriden to ensure the sanity of the D hcpOpt_SubnetMask option.630 * Overriden to ensure the sanity of the DHCPOption_SubnetMask option. 631 631 */ 632 632 HRESULT DHCPGlobalConfig::i_setOption(DHCPOption_T aOption, DHCPOptionEncoding_T aEncoding, const com::Utf8Str &aValue) 633 633 { 634 if (aOption != D hcpOpt_SubnetMask || aEncoding == DHCPOptionEncoding_Normal)634 if (aOption != DHCPOption_SubnetMask || aEncoding == DHCPOptionEncoding_Normal) 635 635 return DHCPConfig::i_setOption(aOption, aEncoding, aValue); 636 return setError(E_FAIL, tr("D hcpOpt_SubnetMask must use DHCPOptionEncoding_Normal as it is reflected by IDHCPServer::networkMask"));636 return setError(E_FAIL, tr("DHCPOption_SubnetMask must use DHCPOptionEncoding_Normal as it is reflected by IDHCPServer::networkMask")); 637 637 } 638 638 639 639 640 640 /** 641 * Overriden to ensure the sanity of the D hcpOpt_SubnetMask option.641 * Overriden to ensure the sanity of the DHCPOption_SubnetMask option. 642 642 */ 643 643 HRESULT DHCPGlobalConfig::i_removeOption(DHCPOption_T aOption) 644 644 { 645 if (aOption != D hcpOpt_SubnetMask)645 if (aOption != DHCPOption_SubnetMask) 646 646 return DHCPConfig::i_removeOption(aOption); 647 return setError(E_FAIL, tr("D hcpOpt_SubnetMask cannot be removed as it reflects IDHCPServer::networkMask"));647 return setError(E_FAIL, tr("DHCPOption_SubnetMask cannot be removed as it reflects IDHCPServer::networkMask")); 648 648 } 649 649 650 650 651 651 /** 652 * Overriden to preserve the D hcpOpt_SubnetMask option.652 * Overriden to preserve the DHCPOption_SubnetMask option. 653 653 */ 654 654 HRESULT DHCPGlobalConfig::i_removeAllOptions()
Note:
See TracChangeset
for help on using the changeset viewer.