mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 21:10:12 +01:00
logging: log DHCP state changes
This commit is contained in:
parent
0e546480fa
commit
00bcc42a35
1 changed files with 8 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue