mirror of
https://github.com/systemd/systemd.git
synced 2025-05-27 21:05:55 +03:00
parent
16cda99c73
commit
22e299fc5e
@ -828,14 +828,12 @@ static int client_message_init(
|
||||
|
||||
/* Some DHCP servers will refuse to issue an DHCP lease if the Client
|
||||
Identifier option is not set */
|
||||
if (client->client_id_len) {
|
||||
r = dhcp_option_append(&packet->dhcp, optlen, &optoffset, 0,
|
||||
SD_DHCP_OPTION_CLIENT_IDENTIFIER,
|
||||
client->client_id_len,
|
||||
&client->client_id);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
r = dhcp_option_append(&packet->dhcp, optlen, &optoffset, 0,
|
||||
SD_DHCP_OPTION_CLIENT_IDENTIFIER,
|
||||
client->client_id_len,
|
||||
&client->client_id);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
/* RFC2131 section 3.5:
|
||||
in its initial DHCPDISCOVER or DHCPREQUEST message, a
|
||||
|
Loading…
x
Reference in New Issue
Block a user