summaryrefslogtreecommitdiff
path: root/src/connection.c
diff options
context:
space:
mode:
authortaesub.kim <taesub.kim@samsung.com>2015-10-06 11:04:26 +0900
committertaesub.kim <taesub.kim@samsung.com>2015-10-06 11:04:49 +0900
commit811c8790cfc2a5cf3806558be7aecac544037ebb (patch)
tree964bc79dfe5a78b468b4d0cadb50c3c9711591e2 /src/connection.c
parent8b4bc4bc6b4dc5f2a5723421bd7da133647c3ce0 (diff)
downloadconnman-811c8790cfc2a5cf3806558be7aecac544037ebb.tar.gz
connman-811c8790cfc2a5cf3806558be7aecac544037ebb.tar.bz2
connman-811c8790cfc2a5cf3806558be7aecac544037ebb.zip
Change-Id: I02fc50820cccc66aed702a97a9928981e73b43cf Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
Diffstat (limited to 'src/connection.c')
-rwxr-xr-xsrc/connection.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c
index aa4e1c05..db79ac79 100755
--- a/src/connection.c
+++ b/src/connection.c
@@ -1022,6 +1022,9 @@ bool __connman_connection_update_gateway(void)
bool updated = false;
GHashTableIter iter;
gpointer value, key;
+#if defined TIZEN_EXT
+ static struct gateway_data *old_default = NULL;
+#endif
if (!gateway_hash)
return updated;
@@ -1063,6 +1066,12 @@ bool __connman_connection_update_gateway(void)
}
}
+#if defined TIZEN_EXT
+ if (updated == false && old_default != default_gateway) {
+ updated = true;
+ old_default = default_gateway;
+ }
+#endif
if (updated && default_gateway) {
if (default_gateway->ipv4_gateway)
set_default_gateway(default_gateway,