| Index: chromeos/network/onc/onc_translation_tables.cc
|
| diff --git a/chromeos/network/onc/onc_translation_tables.cc b/chromeos/network/onc/onc_translation_tables.cc
|
| index 603c3b3ae230f5301e38ea8528b2bf7fcd93925f..c520cf9be59693cd439aca067914940a9c503d58 100644
|
| --- a/chromeos/network/onc/onc_translation_tables.cc
|
| +++ b/chromeos/network/onc/onc_translation_tables.cc
|
| @@ -18,8 +18,6 @@ namespace onc {
|
| //
|
| // Proxy settings are converted to Shill by function
|
| // ConvertOncProxySettingsToProxyConfig(...).
|
| -//
|
| -// Translation of IPConfig objects is not supported, yet.
|
|
|
| namespace {
|
|
|
| @@ -175,6 +173,13 @@ const FieldTranslationEntry network_fields[] = {
|
| // { ::onc::network_config::kConnectionState, shill::kStateProperty },
|
| {NULL}};
|
|
|
| +const FieldTranslationEntry ipconfig_fields[] = {
|
| + { ::onc::ipconfig::kIPAddress, shill::kAddressProperty},
|
| + { ::onc::ipconfig::kGateway, shill::kGatewayProperty},
|
| + { ::onc::ipconfig::kRoutingPrefix, shill::kPrefixlenProperty},
|
| + { ::onc::ipconfig::kNameServers, shill::kNameServersProperty},
|
| + {NULL}};
|
| +
|
| struct OncValueTranslationEntry {
|
| const OncValueSignature* onc_signature;
|
| const FieldTranslationEntry* field_translation_table;
|
| @@ -196,6 +201,7 @@ const OncValueTranslationEntry onc_value_translation_table[] = {
|
| { &kCellularWithStateSignature, cellular_fields },
|
| { &kNetworkWithStateSignature, network_fields },
|
| { &kNetworkConfigurationSignature, network_fields },
|
| + { &kIPConfigSignature, ipconfig_fields },
|
| { NULL }
|
| };
|
|
|
|
|