]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
libsystemd-network: correct argument comment
authorJelle van der Waa <jvanderwaa@redhat.com>
Tue, 6 May 2025 11:26:06 +0000 (13:26 +0200)
committerJelle van der Waa <jvanderwaa@redhat.com>
Tue, 6 May 2025 14:26:47 +0000 (16:26 +0200)
src/libsystemd-network/test-dhcp-client.c

index 06a0cd8480792d73ce6f48f54bd1856b9de277e1..fe2a88d8f3cd89e617f351a8b453756fbfd15216 100644 (file)
@@ -148,8 +148,8 @@ static void test_dhcp_identifier_set_iaid(void) {
         uint32_t iaid_legacy;
         be32_t iaid;
 
-        assert_se(dhcp_identifier_set_iaid(NULL, &hw_addr, /* legacy = */ true, &iaid_legacy) >= 0);
-        assert_se(dhcp_identifier_set_iaid(NULL, &hw_addr, /* legacy = */ false, &iaid) >= 0);
+        assert_se(dhcp_identifier_set_iaid(NULL, &hw_addr, /* legacy_unstable_byteorder = */ true, &iaid_legacy) >= 0);
+        assert_se(dhcp_identifier_set_iaid(NULL, &hw_addr, /* legacy_unstable_byteorder = */ false, &iaid) >= 0);
 
         /* we expect, that the MAC address was hashed. The legacy value is in native
          * endianness. */
@@ -169,7 +169,7 @@ static int check_options(uint8_t code, uint8_t len, const void *option, void *us
                 uint32_t iaid;
 
                 assert_se(sd_dhcp_duid_set_en(&duid) >= 0);
-                assert_se(dhcp_identifier_set_iaid(NULL, &hw_addr, /* legacy = */ true, &iaid) >= 0);
+                assert_se(dhcp_identifier_set_iaid(NULL, &hw_addr, /* legacy_unstable_byteorder = */ true, &iaid) >= 0);
 
                 assert_se(len == sizeof(uint8_t) + sizeof(uint32_t) + duid.size);
                 assert_se(len == 19);