summaryrefslogtreecommitdiff
path: root/src/connection.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-08-08 13:22:45 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-08-09 12:16:35 +0300
commitf2f387ef2b4ab36cf6017ff8c911d4e8439845a7 (patch)
tree834b22c8db09772da3b34eeeb10600ecc090513b /src/connection.c
parentfab9223d04095134a0a79657a8a6250a28e98c2c (diff)
downloadconnman-f2f387ef2b4ab36cf6017ff8c911d4e8439845a7.tar.gz
connman-f2f387ef2b4ab36cf6017ff8c911d4e8439845a7.tar.bz2
connman-f2f387ef2b4ab36cf6017ff8c911d4e8439845a7.zip
connection: Add more debugging when setting VPN routes
Diffstat (limited to 'src/connection.c')
-rw-r--r--src/connection.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c
index d40f4281..2e5cea67 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -149,6 +149,9 @@ static void set_vpn_routes(struct gateway_data *new_gateway,
char *dest;
int index;
+ DBG("new %p service %p gw %s type %d peer %s active %p",
+ new_gateway, service, gateway, type, peer, active_gateway);
+
if (type == CONNMAN_IPCONFIG_TYPE_IPV4) {
ipconfig = __connman_service_get_ip4config(service);
config = new_gateway->ipv4_gateway;
@@ -210,6 +213,8 @@ done:
if (active_gateway->ipv4_gateway == NULL)
return;
+ DBG("active gw %s", active_gateway->ipv4_gateway->gateway);
+
if (g_strcmp0(active_gateway->ipv4_gateway->gateway,
"0.0.0.0") != 0)
dest = active_gateway->ipv4_gateway->gateway;
@@ -224,6 +229,8 @@ done:
if (active_gateway->ipv6_gateway == NULL)
return;
+ DBG("active gw %s", active_gateway->ipv6_gateway->gateway);
+
if (g_strcmp0(active_gateway->ipv6_gateway->gateway,
"::") != 0)
dest = active_gateway->ipv6_gateway->gateway;