dhcp/0019-dhclient-write-DUID_LLT-even-in-stateless-mode-11563.patch
Martin Osvald fa1179c358 New version 4.4.3
Add keama migration utility
2022-03-10 18:06:31 +01:00

29 lines
784 B
Diff

From eeb2e5bcedd62f21472da165b80741f8072420cf Mon Sep 17 00:00:00 2001
From: Pavel Zhukov <pzhukov@redhat.com>
Date: Thu, 21 Feb 2019 10:41:14 +0100
Subject: [PATCH 19/28] dhclient: write DUID_LLT even in stateless mode
(#1156356)
(Submitted to dhcp-bugs@isc.org - [ISC-Bugs #38144])
---
client/dhclient.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/client/dhclient.c b/client/dhclient.c
index d607975..6bbefc7 100644
--- a/client/dhclient.c
+++ b/client/dhclient.c
@@ -1462,6 +1462,9 @@ void run_stateless(int exit_mode, u_int16_t port)
data_string_forget(&default_duid, MDL);
form_duid(&default_duid, MDL);
+ if (form_duid(&default_duid, MDL) == ISC_R_SUCCESS &&
+ duid_type == DUID_LLT)
+ write_duid(&default_duid);
}
#ifdef DHCP4o6
--
2.35.1