projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c02a01
)
Fix issue with two default gateways when using VPN
author
Mohamed Abbas
<mohamed.abbas@intel.com>
Tue, 20 Apr 2010 22:05:46 +0000
(15:05 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 6 May 2010 05:31:32 +0000
(07:31 +0200)
This patch fixes the issue of more than one defaut gateway showing up.
This caused because VPN gatway was added but an active flag never
been set, which lead to two active gateway can be registered.
src/connection.c
patch
|
blob
|
history
diff --git
a/src/connection.c
b/src/connection.c
index
6dfb6d9
..
d971cca
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-142,6
+142,7
@@
static void set_default_gateway(struct gateway_data *data)
if (data->vpn == TRUE) {
connman_inet_set_gateway_address(data->index, data->vpn_ip);
+ data->active = TRUE;
/* vpn gateway going away no changes in services */
return;
}