if (client->user_class) {
r = dhcp_option_append(&packet->dhcp, optlen, optoffset, 0,
SD_DHCP_OPTION_USER_CLASS,
- strv_length(client->user_class),
- client->user_class);
+ /* optlen= */ 0, client->user_class);
if (r < 0)
return r;
}
r = dhcp_option_append(
&packet->dhcp, optlen, optoffset, 0,
SD_DHCP_OPTION_VENDOR_SPECIFIC,
- ordered_hashmap_size(client->vendor_options), client->vendor_options);
+ /* optlen= */ 0, client->vendor_options);
if (r < 0)
return r;
}
r = dhcp_option_append(
&packet->dhcp, req->max_optlen, &offset, 0,
SD_DHCP_OPTION_VENDOR_SPECIFIC,
- ordered_set_size(server->vendor_options), server->vendor_options);
+ /* optlen= */ 0, server->vendor_options);
if (r < 0)
return r;
}