Chromium Code Reviews| 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}, |
|
stevenjb
2014/04/23 19:43:42
We don't need to do this here, but it turns out we
pneubeck (no reviews)
2014/04/25 10:07:34
See changes in onc_translator_shill_to_onc.cc
Just
|
| + {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 } |
| }; |