summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2015-07-09 18:04:01 +0200
committerDaniel Mack <daniel@zonque.org>2015-07-12 14:26:32 -0400
commite43a8393eaf058c4ecd2a5968f59d83b911d4f1f (patch)
tree69b6395ae495f6cedc8d32cdbde62fbf6b056b52 /src/systemd
parent89a2faeed5abf9ee284c157c1940a5ac1d829f9b (diff)
dhcp: add support for vendor specific DHCP option
This adds support for option 43 (Vendor Specific Information) to libsystemd-network DHCP code. The option carries an opaque object of n octets, interpreted by vendor-specific code on the clients and servers. [@zonque: adopted to new unhexmem() API]
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/sd-dhcp-lease.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemd/sd-dhcp-lease.h b/src/systemd/sd-dhcp-lease.h
index 4296b91d8a..5afa50a9d0 100644
--- a/src/systemd/sd-dhcp-lease.h
+++ b/src/systemd/sd-dhcp-lease.h
@@ -45,6 +45,8 @@ int sd_dhcp_lease_get_domainname(sd_dhcp_lease *lease, const char **domainname);
int sd_dhcp_lease_get_hostname(sd_dhcp_lease *lease, const char **hostname);
int sd_dhcp_lease_get_root_path(sd_dhcp_lease *lease, const char **root_path);
int sd_dhcp_lease_get_routes(sd_dhcp_lease *lease, struct sd_dhcp_route **routesgn);
+int sd_dhcp_lease_get_vendor_specific(sd_dhcp_lease *lease, const uint8_t **data,
+ size_t *data_len);
int sd_dhcp_lease_get_client_id(sd_dhcp_lease *lease, const uint8_t **client_id,
size_t *client_id_len);