mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
Include 'vendor class identifier option' into DHCPREQUEST message (#5380)
This commit is contained in:
parent
6862111ecf
commit
5153494f1d
@ -825,6 +825,15 @@ static int client_send_request(sd_dhcp_client *client) {
|
||||
return r;
|
||||
}
|
||||
|
||||
if (client->vendor_class_identifier) {
|
||||
r = dhcp_option_append(&request->dhcp, optlen, &optoffset, 0,
|
||||
SD_DHCP_OPTION_VENDOR_CLASS_IDENTIFIER,
|
||||
strlen(client->vendor_class_identifier),
|
||||
client->vendor_class_identifier);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
||||
r = dhcp_option_append(&request->dhcp, optlen, &optoffset, 0,
|
||||
SD_DHCP_OPTION_END, 0, NULL);
|
||||
if (r < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user