projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4166d48
)
Add some debug handling for received packets in DHCP library
author
Marcel Holtmann
<marcel@holtmann.org>
Thu, 29 Jul 2010 21:11:30 +0000
(14:11 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 29 Jul 2010 21:11:30 +0000
(14:11 -0700)
gdhcp/client.c
patch
|
blob
|
history
diff --git
a/gdhcp/client.c
b/gdhcp/client.c
index
c163b44
..
7a44724
100644
(file)
--- 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;
}