diff options
author | Tom Gundersen <teg@jklm.no> | 2016-03-10 14:38:42 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2016-03-10 14:38:42 +0100 |
commit | ead02a14ede96738250c3aac83adf9ecc1b7e2f1 (patch) | |
tree | 2c5a91b5102fe014299ef15f86f30ee3569fe260 /src/systemd/sd-dhcp6-client.h | |
parent | 79c96fd20457f208c752506030295b4cf64a2994 (diff) | |
parent | c83321e6d40b294e73e2881e4a98172c4244323b (diff) |
Merge pull request #2818 from vinaykul/master
DHCP DUID and IAID configurability
Diffstat (limited to 'src/systemd/sd-dhcp6-client.h')
-rw-r--r-- | src/systemd/sd-dhcp6-client.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/systemd/sd-dhcp6-client.h b/src/systemd/sd-dhcp6-client.h index 1bedc941aa..ebdd017628 100644 --- a/src/systemd/sd-dhcp6-client.h +++ b/src/systemd/sd-dhcp6-client.h @@ -26,6 +26,7 @@ #include "sd-dhcp6-lease.h" #include "sd-event.h" +#include "sparse-endian.h" #include "_sd-common.h" @@ -74,6 +75,7 @@ enum { /* option codes 144-65535 are unassigned */ }; +struct duid; typedef struct sd_dhcp6_client sd_dhcp6_client; typedef void (*sd_dhcp6_client_callback_t)(sd_dhcp6_client *client, int event, @@ -85,8 +87,9 @@ int sd_dhcp6_client_set_index(sd_dhcp6_client *client, int interface_index); int sd_dhcp6_client_set_local_address(sd_dhcp6_client *client, const struct in6_addr *local_address); int sd_dhcp6_client_set_mac(sd_dhcp6_client *client, const uint8_t *addr, size_t addr_len, uint16_t arp_type); -int sd_dhcp6_client_set_duid(sd_dhcp6_client *client, uint16_t type, uint8_t *duid, - size_t duid_len); +int sd_dhcp6_client_set_duid(sd_dhcp6_client *client, size_t duid_len, + struct duid *duid); +int sd_dhcp6_client_set_iaid(sd_dhcp6_client *client, be32_t iaid); int sd_dhcp6_client_set_information_request(sd_dhcp6_client *client, int enabled); int sd_dhcp6_client_get_information_request(sd_dhcp6_client *client, int *enabled); int sd_dhcp6_client_set_request_option(sd_dhcp6_client *client, |