/*static char iptables_usage_fmt[] = "%s -L %s%s -n -v -w;";*/
/* iptables -t nat -A CAPI_VPN_SERVICE_OUTPUT -p udp -d <vpn dns address> --dport 53 -j DNAT --to <vpn defice address:53> */
static char iptables_nat_chain_name[] = "CAPI_VPN_SERVICE_NAT_OUTPUT";
+#if 0
static char iptables_nat_register_init_fmt[] = "%s -t nat -N %s -w;" "%s -t nat -F %s -w;" "%s -t nat -I %s -j %s -w;";
static char iptables_nat_register_rule_fmt[] = "%s -t nat -A %s -p udp -d %s --dport 53 -j DNAT --to %s:53 -w;";
+#endif
static char iptables_nat_unregister_fmt[] = "%s -t nat -D %s -j %s -w;" "%s -t nat -F %s -w;" "%s -t nat -X %s -w;";
typedef unsigned long int ipv4; /* Declare variable type for ipv4 net address. */
return profile;
}
+#if 0
static char *connman_get_items(GDBusConnection *connection, char *profile, const char *keystr)
{
GVariant *message = NULL;
return items;
}
+#endif
static void connman_set_items(GDBusConnection *connection, char *profile,
const char *keystr, char *items)
}
+#if 0
static char *connman_get_nameservers(GDBusConnection *connection, char *profile)
{
return connman_get_items(connection, profile, "Nameservers");
{
return connman_get_items(connection, profile, "Nameservers.Configuration");
}
+#endif
static void connman_set_nameservers(GDBusConnection *connection, char *profile,
char *nameservers)
"Nameservers.Configuration", nameservers);
}
+#if 0
static char *connman_get_domains(GDBusConnection *connection, char *profile)
{
return connman_get_items(connection, profile, "Domains");
{
return connman_get_items(connection, profile, "Domains.Configuration");
}
+#endif
static void connman_set_domains(GDBusConnection *connection, char *profile,
char *domains)
"Domains.Configuration", domains);
}
+#if 0
static int add_dns_servers(char** dns_servers, size_t nr_dns, size_t total_dns_string_cnt)
{
char *profile = NULL;
free(profile);
return VPNSVC_ERROR_NONE;
}
+#endif
static int del_dns_servers()
{
return VPNSVC_ERROR_NONE;
}
+#if 0
static int add_dns_suffix(const char* dns_suffix, size_t dns_suffix_len)
{
char *profile = NULL;
return VPNSVC_ERROR_NONE;
}
+#endif
static int del_dns_suffix()
{
pclose(fp);
}
+#if 0
static void dns_nat_register(char **vpn_dns_address, size_t nr_dns, char *vpn_device_address)
{
int size = 0, i;
LOGD("iptable dns nat reg cmd : %s", buf);
iptables_exec(buf);
}
+#endif
static void dns_nat_unregister(void)
{