summaryrefslogtreecommitdiff
path: root/gdhcp/gdhcp.h
diff options
context:
space:
mode:
authorGrant Erickson <marathon96@gmail.com>2012-02-13 09:56:08 -0800
committerSamuel Ortiz <sameo@linux.intel.com>2012-02-13 19:24:32 +0100
commitb540226ada933b5364ac0d44d345d8cc888e78e7 (patch)
tree03fee4c9f09fde13e996b53bb14d30f49f2f5780 /gdhcp/gdhcp.h
parentdf176bf9cdf59757b6ea10281ad19ae47f935234 (diff)
downloadconnman-b540226ada933b5364ac0d44d345d8cc888e78e7.tar.gz
connman-b540226ada933b5364ac0d44d345d8cc888e78e7.tar.bz2
connman-b540226ada933b5364ac0d44d345d8cc888e78e7.zip
gdhcp: Add RFC 1533- and 2132-compliant client-id option
This patch adds a function to add a RFC 1533- and 2132-compliant DHCP client-id option (61) to sent DHCPv4 packets.
Diffstat (limited to 'gdhcp/gdhcp.h')
-rw-r--r--gdhcp/gdhcp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdhcp/gdhcp.h b/gdhcp/gdhcp.h
index edebc9e1..4453b26f 100644
--- a/gdhcp/gdhcp.h
+++ b/gdhcp/gdhcp.h
@@ -74,6 +74,7 @@ typedef enum {
#define G_DHCP_DOMAIN_NAME 0x0f
#define G_DHCP_HOST_NAME 0x0c
#define G_DHCP_NTP_SERVER 0x2a
+#define G_DHCP_CLIENT_ID 0x3d
#define G_DHCPV6_CLIENTID 1
#define G_DHCPV6_SERVERID 2
@@ -121,6 +122,7 @@ GDHCPClientError g_dhcp_client_set_request(GDHCPClient *client,
unsigned int option_code);
void g_dhcp_client_clear_requests(GDHCPClient *dhcp_client);
void g_dhcp_client_clear_values(GDHCPClient *dhcp_client);
+GDHCPClientError g_dhcp_client_set_id(GDHCPClient *client);
GDHCPClientError g_dhcp_client_set_send(GDHCPClient *client,
unsigned char option_code,
const char *option_value);