Blame SOURCES/0019-dhclient-write-DUID_LLT-even-in-stateless-mode-11563.patch

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