summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@vmware.com>2019-09-26 20:06:02 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-10-15 00:14:02 +0900
commitcb29c1560515f758e6122d111e82ab302b805671 (patch)
treebf08bf944ab07d4ecb0db448ca17594c44ba239c /src/systemd
parent349176ae6c095725ddc11599dd03c7f16a5bb099 (diff)
downloadsystemd-cb29c1560515f758e6122d111e82ab302b805671.tar.gz
network: DHCPv4 client: add support to send arbitary option and data
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/sd-dhcp-client.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/systemd/sd-dhcp-client.h b/src/systemd/sd-dhcp-client.h
index 98e3281397..a44e6e35a2 100644
--- a/src/systemd/sd-dhcp-client.h
+++ b/src/systemd/sd-dhcp-client.h
@@ -99,6 +99,7 @@ enum {
};
typedef struct sd_dhcp_client sd_dhcp_client;
+typedef struct sd_dhcp_option sd_dhcp_option;
typedef int (*sd_dhcp_client_callback_t)(sd_dhcp_client *client, int event, void *userdata);
int sd_dhcp_client_set_callback(
@@ -178,6 +179,11 @@ int sd_dhcp_client_set_service_type(
sd_dhcp_client *client,
int type);
+int sd_dhcp_option_new(uint8_t option, void *data, size_t length, sd_dhcp_option **ret);
+sd_dhcp_option* sd_dhcp_option_ref(sd_dhcp_option *i);
+sd_dhcp_option* sd_dhcp_option_unref(sd_dhcp_option *i);
+int sd_dhcp_client_set_dhcp_option(sd_dhcp_client *client, sd_dhcp_option *v);
+
int sd_dhcp_client_stop(sd_dhcp_client *client);
int sd_dhcp_client_start(sd_dhcp_client *client);
int sd_dhcp_client_send_release(sd_dhcp_client *client);
@@ -198,6 +204,7 @@ int sd_dhcp_client_detach_event(sd_dhcp_client *client);
sd_event *sd_dhcp_client_get_event(sd_dhcp_client *client);
_SD_DEFINE_POINTER_CLEANUP_FUNC(sd_dhcp_client, sd_dhcp_client_unref);
+_SD_DEFINE_POINTER_CLEANUP_FUNC(sd_dhcp_option, sd_dhcp_option_unref);
_SD_END_DECLARATIONS;