diff options
author | Dan Williams <dcbw@redhat.com> | 2014-11-18 17:01:20 -0600 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-11-19 00:53:24 +0100 |
commit | ba6c0fd6303c63576983c7be892d80d954c1e4c5 (patch) | |
tree | 059429e232be0382393ee830d870b9102fd3c281 /src/systemd/sd-dhcp-client.h | |
parent | 7b0fce617c48eda32b2d4e04b5f0e4376e8c0106 (diff) | |
download | systemd-ba6c0fd6303c63576983c7be892d80d954c1e4c5.tar.gz |
sd-dhcp-client: allow getting/setting the client ID
The client identifier can be in many different formats, not just
the one that systemd creates from the Ethernet MAC address. Non-
ethernet interfaces may have different client IDs formats. Users
may also have custom client IDs that the wish to use to preserve
lease options delivered by servers configured with the existing
client ID.
Diffstat (limited to 'src/systemd/sd-dhcp-client.h')
-rw-r--r-- | src/systemd/sd-dhcp-client.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemd/sd-dhcp-client.h b/src/systemd/sd-dhcp-client.h index 7416f82193..951662e56c 100644 --- a/src/systemd/sd-dhcp-client.h +++ b/src/systemd/sd-dhcp-client.h @@ -51,6 +51,10 @@ int sd_dhcp_client_set_request_broadcast(sd_dhcp_client *client, int broadcast); int sd_dhcp_client_set_index(sd_dhcp_client *client, int interface_index); int sd_dhcp_client_set_mac(sd_dhcp_client *client, const uint8_t *addr, size_t addr_len, uint16_t arp_type); +int sd_dhcp_client_set_client_id(sd_dhcp_client *client, uint8_t type, + const uint8_t *data, size_t data_len); +int sd_dhcp_client_get_client_id(sd_dhcp_client *client, uint8_t *type, + const uint8_t **data, size_t *data_len); int sd_dhcp_client_set_mtu(sd_dhcp_client *client, uint32_t mtu); int sd_dhcp_client_set_hostname(sd_dhcp_client *client, const char *hostname); int sd_dhcp_client_set_vendor_class_identifier(sd_dhcp_client *client, const char *vci); |