diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2019-12-02 11:33:22 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2019-12-02 11:42:32 +0100 |
commit | 0ac568704be5bdb962fa520bcdbb53a9190c4269 (patch) | |
tree | 0eec0ad897f70d74a413b389924b45efc760d29d | |
parent | c37019c0e4baf743d15a840e529cddeb21d7b468 (diff) | |
download | NetworkManager-bg/iaid-byte-order.tar.gz |
core: fix IAID endianness in client-id generation testbg/iaid-byte-order
Fixes: 6f16e524be3c ('core: support ipvX.dhcp-iaid properties')
https://bugzilla.redhat.com/show_bug.cgi?id=1778640
-rw-r--r-- | src/tests/test-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
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)); |