Skip to content

Commit

Permalink
dhcp: Add useful IPv4 ll debug information
Browse files Browse the repository at this point in the history
  • Loading branch information
jukkar authored and pfl committed Nov 14, 2013
1 parent 32c1abe commit e2703e2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/dhcp.c
Expand Up @@ -234,16 +234,20 @@ static gboolean dhcp_retry_cb(gpointer user_data)
static void no_lease_cb(GDHCPClient *dhcp_client, gpointer user_data)
{
struct connman_dhcp *dhcp = user_data;
int err;

DBG("No lease available");
DBG("No lease available ipv4ll %d client %p", ipv4ll_running,
dhcp->ipv4ll_client);

dhcp->timeout = g_timeout_add_seconds(RATE_LIMIT_INTERVAL,
dhcp_retry_cb,
dhcp);
if (ipv4ll_running)
return;

ipv4ll_start_client(dhcp);
err = ipv4ll_start_client(dhcp);
if (err < 0)
DBG("Cannot start ipv4ll client (%d/%s)", err, strerror(-err));

/* Only notify upper layer if we have a problem */
dhcp_invalidate(dhcp, !ipv4ll_running);
Expand Down

0 comments on commit e2703e2

Please sign in to comment.