diff options
author | Ronan Pigott <ronan@rjp.ie> | 2024-01-25 01:53:35 +0100 |
---|---|---|
committer | Ronan Pigott <ronan@rjp.ie> | 2024-10-21 18:10:19 +0200 |
commit | 2d9822b634680f1be1d20920aceddac76de110eb (patch) | |
tree | 46b76cb0b8ccb53d382abd27651421327a93d5c3 /src | |
parent | test-network: add test for DHCPv4 DNR (diff) | |
download | systemd-2d9822b634680f1be1d20920aceddac76de110eb.tar.xz systemd-2d9822b634680f1be1d20920aceddac76de110eb.zip |
test-dhcp6: terminate fqdn option
The encoded fqdn in this option must be properly terminated. We will
soon validate that this field is correctly encoded, so correct it in the
test.
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-network/test-dhcp6-client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsystemd-network/test-dhcp6-client.c b/src/libsystemd-network/test-dhcp6-client.c index 7afd464dc0..8c89365140 100644 --- a/src/libsystemd-network/test-dhcp6-client.c +++ b/src/libsystemd-network/test-dhcp6-client.c @@ -745,8 +745,8 @@ static const uint8_t msg_reply[] = { 0x00, SD_DHCP6_OPTION_DOMAIN, 0x00, 0x0b, 0x03, 'l', 'a', 'b', 0x05, 'i', 'n', 't', 'r', 'a', 0x00, /* Client FQDN */ - 0x00, SD_DHCP6_OPTION_CLIENT_FQDN, 0x00, 0x12, - 0x01, 0x06, 'c', 'l', 'i', 'e', 'n', 't', 0x03, 'l', 'a', 'b', 0x05, 'i', 'n', 't', 'r', 'a', + 0x00, SD_DHCP6_OPTION_CLIENT_FQDN, 0x00, 0x13, + 0x01, 0x06, 'c', 'l', 'i', 'e', 'n', 't', 0x03, 'l', 'a', 'b', 0x05, 'i', 'n', 't', 'r', 'a', 0x00, /* Vendor specific options */ 0x00, SD_DHCP6_OPTION_VENDOR_OPTS, 0x00, 0x09, 0x00, 0x00, 0x00, 0x20, 0x00, 0xf7, 0x00, 0x01, VENDOR_SUBOPTION_BYTES, @@ -827,8 +827,8 @@ static const uint8_t msg_advertise[] = { 0x00, SD_DHCP6_OPTION_DOMAIN, 0x00, 0x0b, 0x03, 'l', 'a', 'b', 0x05, 'i', 'n', 't', 'r', 'a', 0x00, /* Client FQDN */ - 0x00, SD_DHCP6_OPTION_CLIENT_FQDN, 0x00, 0x12, - 0x01, 0x06, 'c', 'l', 'i', 'e', 'n', 't', 0x03, 'l', 'a', 'b', 0x05, 'i', 'n', 't', 'r', 'a', + 0x00, SD_DHCP6_OPTION_CLIENT_FQDN, 0x00, 0x13, + 0x01, 0x06, 'c', 'l', 'i', 'e', 'n', 't', 0x03, 'l', 'a', 'b', 0x05, 'i', 'n', 't', 'r', 'a', 0x00, /* Vendor specific options */ 0x00, SD_DHCP6_OPTION_VENDOR_OPTS, 0x00, 0x09, 0x00, 0x00, 0x00, 0x20, 0x00, 0xf7, 0x00, 0x01, VENDOR_SUBOPTION_BYTES, |