#include "i18nmanager.h"
#define DEFAULT_PROXY_ADDR "0.0.0.0:80"
-#define IPV4_LABEL "IPv4"
-#define IPV6_LABEL "IPv6"
#define IPV4_DEFAULT_ADDR "0.0.0.0"
#define IPV6_DEFAULT_ADDR "::"
if (ip_data->is_first_create == TRUE)
prev_ip_info->gateway_addr = g_strdup(txt);
+ /* Network Prefix Length */
+ Elm_Object_Item* item = NULL;
+ ret = wifi_manager_ap_get_subnet_mask(ap, WIFI_MANAGER_ADDRESS_FAMILY_IPV6, &txt);
+ INFO_LOG(UG_NAME_ERR, "Prefix Length = [%s]", txt);
+ if (ret != WIFI_MANAGER_ERROR_NONE)
+ INFO_LOG(UG_NAME_ERR, "Failed to get prefix length! [%d]", ret);
+
+ item = _add_description(ip_info_list_data->genlist,
+ "IDS_ST_BODY_NETWORK_PREFIX_LENGTH", txt, ip_info_list_data->gateway_addr_item);
+ ip_info_list_data->prefix_length_item = item;
+
+ g_free(txt);
+ txt = NULL;
+
/* DNS 1 */
ret = wifi_manager_ap_get_dns_address(ap, 1, WIFI_MANAGER_ADDRESS_FAMILY_IPV4, &txt);
if (ret != WIFI_MANAGER_ERROR_NONE)
edit_box_details->input_panel_cb_data = ip_info_list_data->input_panel_cb_data;
edit_box_details->item = elm_genlist_item_insert_after(
ip_info_list_data->genlist, ip_entry_itc,
- edit_box_details, NULL, ip_info_list_data->gateway_addr_item,
+ edit_box_details, NULL, ip_info_list_data->prefix_length_item,
ELM_GENLIST_ITEM_NONE, _gl_editbox_sel_cb, NULL);
#ifdef ACCESSIBLITY_FEATURE
ao = elm_object_item_access_object_get(edit_box_details->item);
elm_object_item_del(ip_info_list_data->gateway_addr_item);
ip_info_list_data->gateway_addr_item = NULL;
+ elm_object_item_del(ip_info_list_data->prefix_length_item);
+ ip_info_list_data->prefix_length_item = NULL;
+
_ip_info_entry_del_callbacks(ip_info_list_data->dns_1_item);
elm_object_item_del(ip_info_list_data->dns_1_item);
ip_info_list_data->dns_1_item = NULL;
if (g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) || (!g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) && !g_strcmp0(ipv6_addr, IPV6_DEFAULT_ADDR)))
ip_info_list_data->ipv4_addr_item = _add_description(
ip_info_list_data->genlist,
- IPV4_LABEL,
+ "IDS_ST_BODY_IPV4",
ip_addr,
ip_info_list_data->ip_addr_item);
if (ip_info_list_data->ipv4_addr_item)
ip_info_list_data->ipv6_addr_item = _add_description(
ip_info_list_data->genlist,
- IPV6_LABEL,
+ "IDS_ST_BODY_IPV6",
ipv6_addr,
ip_info_list_data->ipv4_addr_item);
else
ip_info_list_data->ipv6_addr_item = _add_description(
ip_info_list_data->genlist,
- IPV6_LABEL,
+ "IDS_ST_BODY_IPV6",
ipv6_addr,
ip_info_list_data->ip_addr_item);
if (g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) || (!g_strcmp0(ip_addr, IPV4_DEFAULT_ADDR) && !g_strcmp0(ipv6_addr, IPV6_DEFAULT_ADDR)))
ip_info_list_data->ipv4_addr_item = _add_description(genlist,
- IPV4_LABEL, ip_addr, NULL);
+ "IDS_ST_BODY_IPV4", ip_addr, NULL);
if (g_strcmp0(ipv6_addr, IPV6_DEFAULT_ADDR))
ip_info_list_data->ipv6_addr_item = _add_description(genlist,
- IPV6_LABEL, ipv6_addr, NULL);
+ "IDS_ST_BODY_IPV6", ipv6_addr, NULL);
g_free(ip_addr);
ip_addr = NULL;