mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 02:21:44 +03:00
sd-dhcp: change uint8_t *duid to const void*
This commit is contained in:
parent
4b558378a7
commit
f7a92d1a7e
@ -322,7 +322,7 @@ int sd_dhcp_client_set_iaid_duid(
|
||||
sd_dhcp_client *client,
|
||||
uint32_t iaid,
|
||||
uint16_t duid_type,
|
||||
uint8_t *duid,
|
||||
const void *duid,
|
||||
size_t duid_len) {
|
||||
|
||||
DHCP_CLIENT_DONT_DESTROY(client);
|
||||
|
@ -189,8 +189,9 @@ static int client_ensure_duid(sd_dhcp6_client *client) {
|
||||
int sd_dhcp6_client_set_duid(
|
||||
sd_dhcp6_client *client,
|
||||
uint16_t duid_type,
|
||||
uint8_t *duid,
|
||||
const void *duid,
|
||||
size_t duid_len) {
|
||||
|
||||
int r;
|
||||
assert_return(client, -EINVAL);
|
||||
assert_return(IN_SET(client->state, DHCP6_STATE_STOPPED), -EBUSY);
|
||||
|
@ -116,7 +116,7 @@ int sd_dhcp_client_set_iaid_duid(
|
||||
sd_dhcp_client *client,
|
||||
uint32_t iaid,
|
||||
uint16_t duid_type,
|
||||
uint8_t *duid,
|
||||
const void *duid,
|
||||
size_t duid_len);
|
||||
int sd_dhcp_client_get_client_id(
|
||||
sd_dhcp_client *client,
|
||||
|
@ -96,7 +96,7 @@ int sd_dhcp6_client_set_mac(
|
||||
int sd_dhcp6_client_set_duid(
|
||||
sd_dhcp6_client *client,
|
||||
uint16_t duid_type,
|
||||
uint8_t *duid,
|
||||
const void *duid,
|
||||
size_t duid_len);
|
||||
int sd_dhcp6_client_set_iaid(
|
||||
sd_dhcp6_client *client,
|
||||
|
Loading…
Reference in New Issue
Block a user