if (connection_profile_get_ip_config_type(profile, address_family, &ip_type) != CONNECTION_ERROR_NONE)
printf("Fail to get ipconfig type!\n");
- else
- printf("Ipconfig type : %d\n", ip_type);
+ else {
+ if (ip_type == CONNECTION_IP_CONFIG_TYPE_STATIC)
+ printf("ip type : %s\n", "CONNECTION_IP_CONFIG_TYPE_STATIC");
+ else if (ip_type == CONNECTION_IP_CONFIG_TYPE_DYNAMIC)
+ printf("ip type : %s\n", "CONNECTION_IP_CONFIG_TYPE_DYNAMIC");
+ else if (ip_type == CONNECTION_IP_CONFIG_TYPE_AUTO)
+ printf("ip type : %s\n", "CONNECTION_IP_CONFIG_TYPE_AUTO");
+ else if (ip_type == CONNECTION_IP_CONFIG_TYPE_FIXED)
+ printf("ip type : %s\n", "CONNECTION_IP_CONFIG_TYPE_FIXED");
+ else
+ printf("ip type : %s\n", "CONNECTION_IP_CONFIG_TYPE_NONE");
+ }
if (connection_profile_get_ip_address(profile, address_family, &ip) != CONNECTION_ERROR_NONE)
printf("Fail to get IP address!\n");
if (connection_profile_get_dns_config_type(profile, address_family, &dns_type) != CONNECTION_ERROR_NONE)
printf("Fail to get DNS configuration type!\n");
- else
- printf("DNS configuration type : %d\n", dns_type);
+ else {
+ if (dns_type == CONNECTION_DNS_CONFIG_TYPE_STATIC)
+ printf("DNS config type : %s\n", "CONNECTION_DNS_CONFIG_TYPE_STATIC");
+ else if (dns_type == CONNECTION_DNS_CONFIG_TYPE_DYNAMIC)
+ printf("DNS config type : %s\n", "CONNECTION_DNS_CONFIG_TYPE_DYNAMIC");
+ else
+ printf("DNS config type : %s\n", "CONNECTION_DNS_CONFIG_TYPE_NONE");
+ }
if (connection_profile_get_dns_address(profile, 1, address_family, &dns1) != CONNECTION_ERROR_NONE)
printf("Fail to get DNS1!\n");
if (connection_profile_get_proxy_type(profile, &proxy_type) != CONNECTION_ERROR_NONE)
printf("Fail to get proxy type!\n");
- else
- printf("Proxy type : %d\n", proxy_type);
+ else {
+ if (proxy_type == CONNECTION_PROXY_TYPE_DIRECT)
+ printf("proxy type : %s\n", "CONNECTION_PROXY_TYPE_DIRECT");
+ else if (proxy_type == CONNECTION_PROXY_TYPE_AUTO)
+ printf("proxy type : %s\n", "CONNECTION_PROXY_TYPE_AUTO");
+ else
+ printf("proxy type : %s\n", "CONNECTION_PROXY_TYPE_MANUAL");
+ }
if (connection_profile_get_proxy_address(profile, address_family, &proxy) != CONNECTION_ERROR_NONE)
printf("Fail to get proxy!\n");