From: Jukka Rissanen Date: Wed, 18 Jan 2012 13:24:57 +0000 (+0200) Subject: dhcpv6: Add more debug prints X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~705 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=935279a78c7630ad63f4830029f87f17a0a2c8d4;p=profile%2Fivi%2Fconnman.git dhcpv6: Add more debug prints --- diff --git a/src/dhcpv6.c b/src/dhcpv6.c index fe2f0fa..04b8b2b 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -804,6 +804,8 @@ int __connman_dhcpv6_start_renew(struct connman_network *network, if (dhcp == NULL) return -ENOENT; + DBG("network %p dhcp %p", network, dhcp); + if (dhcp->timeout > 0) { g_source_remove(dhcp->timeout); dhcp->timeout = 0; @@ -872,7 +874,8 @@ int __connman_dhcpv6_start_release(struct connman_network *network, if (dhcp == NULL) return -ENOENT; - DBG("dhcp %p stateless %d", dhcp, dhcp->stateless); + DBG("network %p dhcp %p client %p stateless %d", network, dhcp, + dhcp->dhcp_client, dhcp->stateless); if (dhcp->stateless == TRUE) return -EINVAL; @@ -992,6 +995,8 @@ int __connman_dhcpv6_start_info(struct connman_network *network, connman_network_ref(network); + DBG("replace network %p dhcp %p", network, dhcp); + g_hash_table_replace(network_table, network, dhcp); /* Initial timeout, RFC 3315, 18.1.5 */ @@ -1149,6 +1154,8 @@ int __connman_dhcpv6_start(struct connman_network *network, connman_network_ref(network); + DBG("replace network %p dhcp %p", network, dhcp); + g_hash_table_replace(network_table, network, dhcp); /* Initial timeout, RFC 3315, 17.1.2 */