mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 05:40:11 +01:00
dhcp: log used DHCP IAID as hexstr
This is also the format that we will use to expose it in the lease
information. It's the format that dhclient uses.
(cherry picked from commit 2fe4313b92)
This commit is contained in:
parent
2e0e38ab17
commit
657949eacd
1 changed files with 4 additions and 2 deletions
|
|
@ -1920,11 +1920,13 @@ out_fail:
|
|||
iaid = nm_utils_create_dhcp_iaid(TRUE, (const guint8 *) iface, strlen(iface));
|
||||
out_good:
|
||||
if (!log_silent) {
|
||||
char buf[NM_DHCP_IAID_TO_HEXSTR_BUF_LEN];
|
||||
|
||||
_LOGD(LOGD_DEVICE | LOGD_DHCPX(IS_IPv4) | LOGD_IPX(IS_IPv4),
|
||||
"ipv%c.dhcp-iaid: using %u (0x%08x) IAID (str: '%s', explicit %d)",
|
||||
"ipv%c.dhcp-iaid: using %u (%s) IAID (str: '%s', explicit %d)",
|
||||
nm_utils_addr_family_to_char(addr_family),
|
||||
iaid,
|
||||
iaid,
|
||||
nm_dhcp_iaid_to_hexstr(iaid, buf),
|
||||
iaid_str,
|
||||
is_explicit);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue