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

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