summaryrefslogtreecommitdiff
path: root/src/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection.c')
-rwxr-xr-xsrc/connection.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c
index 6036db31..c18701a7 100755
--- a/src/connection.c
+++ b/src/connection.c
@@ -1114,6 +1114,23 @@ bool __connman_connection_update_gateway(void)
return updated;
}
+#if defined TIZEN_EXT
+void __connman_connection_update_default_gateway(void)
+{
+ struct gateway_data *default_gateway;
+
+ default_gateway = find_default_gateway();
+ DBG("default %p", default_gateway);
+
+ if (!default_gateway)
+ return;
+
+ if (default_gateway->ipv4_gateway)
+ set_default_gateway(default_gateway,
+ CONNMAN_IPCONFIG_TYPE_IPV4);
+}
+#endif
+
int __connman_connection_get_vpn_index(int phy_index)
{
GHashTableIter iter;