core: fix IAID endianness in client-id generation test

Fixes: 6f16e524be ('core: support ipvX.dhcp-iaid properties')

https://bugzilla.redhat.com/show_bug.cgi?id=1778640
(cherry picked from commit b90f8e785e)
This commit is contained in:
Beniamino Galvani 2019-12-02 11:33:22 +01:00
parent eacce1fd77
commit a33387eeba

View file

@ -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));