[PATCH 1/2] Fix for two default gateways.

mabbasconnman at gmail.com mabbasconnman at gmail.com
Tue Apr 20 15:05:46 PDT 2010


From: Mohamed Abbas <mohamed.abbas at intel.com>

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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/connection.c b/src/connection.c
index 6dfb6d9..d971cca 100644
--- 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;
 	}
-- 
1.6.1.3




More information about the connman mailing list