diff options
author | Niklas | 2011-08-01 16:55:01 +0200 |
---|---|---|
committer | Niklas | 2011-08-01 16:55:01 +0200 |
commit | e0d30e3134fcbe54182d53e69f64167db408014b (patch) | |
tree | ec870362fb54c9a8ed0ea5bd815721888e356a2d /workspace/customdhcpcd/src/client.c | |
parent | seperation of logic and gui completed. (diff) | |
download | fbgui-e0d30e3134fcbe54182d53e69f64167db408014b.tar.gz fbgui-e0d30e3134fcbe54182d53e69f64167db408014b.tar.xz fbgui-e0d30e3134fcbe54182d53e69f64167db408014b.zip |
added some log statements to the dhcpcd client. But unfortunately it seems that some message will not be delivered. It happens that after the process finished message, some other messages arrived
Diffstat (limited to 'workspace/customdhcpcd/src/client.c')
-rw-r--r-- | workspace/customdhcpcd/src/client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/workspace/customdhcpcd/src/client.c b/workspace/customdhcpcd/src/client.c index 5a8a9e9..ba71ba4 100644 --- a/workspace/customdhcpcd/src/client.c +++ b/workspace/customdhcpcd/src/client.c @@ -792,6 +792,7 @@ static int handle_dhcp (state_t *state, int type, const options_t *options) /* We should restart on a NAK */ if (type == DHCP_NAK) { logger (LOG_INFO, "received NAK: %s", dhcp->message); + logToQt(LOG_INFO, DHCP_NAK, ""); state->state = STATE_INIT; state->timeout = 0; state->xid = 0; @@ -827,6 +828,8 @@ static int handle_dhcp (state_t *state, int type, const options_t *options) addr, inet_ntoa (dhcp->serveraddress)); free (addr); + logToQt(LOG_INFO, DHCP_OFFER, ""); + #ifdef ENABLE_INFO if (options->test) { write_info (iface, dhcp, options, false); @@ -873,6 +876,7 @@ static int handle_dhcp (state_t *state, int type, const options_t *options) dhcp->address.s_addr) { errno = 0; + logToQt(LOG_INFO, DHCPCD_ARP_TEST, ""); if (arp_claim (iface, dhcp->address)) { do_socket (state, SOCKET_OPEN); _send_message (state, DHCP_DECLINE, options); @@ -969,6 +973,7 @@ static int handle_dhcp (state_t *state, int type, const options_t *options) state->xid = 0; + logToQt(LOG_INFO, DHCPCD_CONFIGURE, ""); if (configure (options, iface, dhcp, true) == -1 && ! state->daemonised) return (-1); |