From a33387eebac9846b40bf78fa8f7015d669f6468f Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Mon, 2 Dec 2019 11:33:22 +0100 Subject: [PATCH] core: fix IAID endianness in client-id generation test Fixes: 6f16e524be3c ('core: support ipvX.dhcp-iaid properties') https://bugzilla.redhat.com/show_bug.cgi?id=1778640 (cherry picked from commit b90f8e785eb0a5a7f22c582767e1b88d9b30cb8e) --- src/tests/test-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tests/test-core.c b/src/tests/test-core.c index c6769cd8a2..f55f3dff05 100644 --- a/src/tests/test-core.c +++ b/src/tests/test-core.c @@ -2086,7 +2086,9 @@ test_nm_utils_dhcp_client_id_systemd_node_specific (gconstpointer test_data) guint32 iaid = d->iaid_ifname; guint32 tmp; - tmp = nm_utils_create_dhcp_iaid (TRUE, (const guint8 *) d->ifname, strlen (d->ifname)); + tmp = nm_utils_create_dhcp_iaid (legacy_unstable_byteorder, + (const guint8 *) d->ifname, + strlen (d->ifname)); client_id = nm_utils_dhcp_client_id_systemd_node_specific_full (tmp, (const guint8 *) &d->machine_id, sizeof (d->machine_id));