+ address_family,
+ CONNECTION_IP_CONFIG_TYPE_DYNAMIC);
+ if (test_get_user_int("Input DNS Address Type (Static:1, DHCP:2)"
+ " - (Enter for skip) :", &dns_input)) {
+ switch (dns_input) {
+ case CONNECTION_DNS_CONFIG_TYPE_STATIC:
+ rv = connection_profile_set_dns_config_type(
+ profile,
+ address_family,
+ CONNECTION_DNS_CONFIG_TYPE_STATIC);
+ if (rv != CONNECTION_ERROR_NONE)
+ return -1;
+ if (test_update_dns_info(profile,
+ address_family) == -1)
+ return -1;
+ break;
+ case CONNECTION_DNS_CONFIG_TYPE_DYNAMIC:
+ rv = connection_profile_set_dns_config_type(
+ profile,
+ address_family,
+ CONNECTION_DNS_CONFIG_TYPE_DYNAMIC);
+ if (rv != CONNECTION_ERROR_NONE)
+ return -1;
+ break;
+ }
+ }