Changeset 54584 in vbox for trunk/src/VBox
- Timestamp:
- Mar 2, 2015 4:45:57 PM (10 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r54582 r54584 1650 1650 </enum> 1651 1651 1652 <enum 1653 name="DhcpOptEncoding" 1654 uuid="88ea6d70-8648-4871-ba30-1f49c61cfaa2"> 1655 <const name="Legacy" value="0"/> 1656 <const name="Hex" value="1"/> 1657 </enum> 1658 1652 1659 <interface 1653 1660 name="IDHCPServer" extends="$unknown" -
trunk/src/VBox/NetworkServices/DHCP/Config.cpp
r54544 r54584 1052 1052 1053 1053 1054 /*1055 * XXX: Since encoding info is "smuggled" through the API and is not1056 * exposed properly we don't have a common definition we can use here.1057 *1058 * TODO: We can define the encodings enum in the IDL without breaking1059 * backward compatibility. This will provide the authoritative1060 * definition.1061 */1062 1054 static int fillDhcpOption(RawOption &opt, const std::string &OptText, int OptEncoding) 1063 1055 { 1064 1056 int rc; 1065 1057 1066 if (OptEncoding == /* HEX */ 1)1058 if (OptEncoding == DhcpOptEncoding_Hex) 1067 1059 { 1068 1060 if (OptText.empty()) … … 1091 1083 opt.cbRawOpt = (uint8_t)cbRawOpt; 1092 1084 } 1093 else if (OptEncoding == /* LEGACY */ 0)1085 else if (OptEncoding == DhcpOptEncoding_Legacy) 1094 1086 { 1095 1087 /*
Note:
See TracChangeset
for help on using the changeset viewer.