logging: log DHCP state changes

This commit is contained in:
Dan Williams 2010-05-01 09:26:57 -07:00
parent 0e546480fa
commit 00bcc42a35

View file

@ -1267,6 +1267,14 @@ dhcp_state_changed (NMDHCPClient *client,
ipv6 = nm_dhcp_client_get_ipv6 (client);
dev_state = nm_device_get_state (device);
if (ipv6) {
nm_log_dbg (LOGD_DHCP6, "(%s): new DHCPv6 client state %d",
nm_device_get_iface (device), dev_state);
} else {
nm_log_dbg (LOGD_DHCP4, "(%s): new DHCPv4 client state %d",
nm_device_get_iface (device), dev_state);
}
switch (state) {
case DHC_BOUND4: /* lease obtained */
case DHC_BOUND6: