summaryrefslogtreecommitdiff
path: root/gdhcp
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-07-29 14:11:30 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-07-29 14:11:30 -0700
commitefffed889a7c4cf1b4cca0478962b273f44c2373 (patch)
tree650700cc1af07a1b0416a7690bfef4aa3dca3d60 /gdhcp
parent4166d48c2f6e66ae64bbe921306dbbf830fbb488 (diff)
downloadconnman-efffed889a7c4cf1b4cca0478962b273f44c2373.tar.gz
connman-efffed889a7c4cf1b4cca0478962b273f44c2373.tar.bz2
connman-efffed889a7c4cf1b4cca0478962b273f44c2373.zip
Add some debug handling for received packets in DHCP library
Diffstat (limited to 'gdhcp')
-rw-r--r--gdhcp/client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdhcp/client.c b/gdhcp/client.c
index c163b446..7a447240 100644
--- a/gdhcp/client.c
+++ b/gdhcp/client.c
@@ -977,6 +977,9 @@ static gboolean listener_event(GIOChannel *channel, GIOCondition condition,
/* No message type option, ignore pakcage */
return TRUE;
+ debug(dhcp_client, "received DHCP packet (current state %d)",
+ dhcp_client->state);
+
switch (dhcp_client->state) {
case INIT_SELECTING:
if (*message_type != DHCPOFFER)
@@ -1039,6 +1042,9 @@ static gboolean listener_event(GIOChannel *channel, GIOCondition condition,
break;
}
+ debug(dhcp_client, "processed DHCP packet (new state %d)",
+ dhcp_client->state);
+
return TRUE;
}