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
This commit is contained in:
Beniamino Galvani 2019-12-02 11:33:22 +01:00
parent 4fcff3f34c
commit b90f8e785e

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