return MOBILE_AP_ERROR_NONE;
}
+static void __cleanup_ipv6_network_info(void)
+{
+ DBG("+");
+ if (ipv6_net_info.if_name) {
+ g_free(ipv6_net_info.if_name);
+ ipv6_net_info.if_name = NULL;
+ }
+
+ if (ipv6_net_info.global_address) {
+ g_free(ipv6_net_info.global_address);
+ ipv6_net_info.global_address = NULL;
+ }
+
+ if (ipv6_net_info.prefix) {
+ g_free(ipv6_net_info.prefix);
+ ipv6_net_info.prefix = NULL;
+ }
+
+ if (ipv6_net_info.dns) {
+ g_free(ipv6_net_info.dns);
+ ipv6_net_info.dns = NULL;
+ }
+
+ ipv6_net_info.state = 0;
+ DBG("-");
+}
+
static int __enable_ipv4_forwarding(void)
{
int fd = -1;
connection_profile_destroy(tethered_prof);
tethered_prof = NULL;
__close_tethering_profile();
+ __cleanup_ipv6_network_info();
DBG("-\n");
return;