summaryrefslogtreecommitdiff
path: root/src/dhcp.c
diff options
context:
space:
mode:
authorGrant Erickson <marathon96@gmail.com>2012-02-13 09:56:09 -0800
committerSamuel Ortiz <sameo@linux.intel.com>2012-02-13 19:24:32 +0100
commitb18d9798b3a0ae46ed87d6d2be8d5a474bf3ab1e (patch)
treeee037e124f37e3ba52eb17df171c92fc1c6b846b /src/dhcp.c
parentb540226ada933b5364ac0d44d345d8cc888e78e7 (diff)
downloadconnman-b18d9798b3a0ae46ed87d6d2be8d5a474bf3ab1e.tar.gz
connman-b18d9798b3a0ae46ed87d6d2be8d5a474bf3ab1e.tar.bz2
connman-b18d9798b3a0ae46ed87d6d2be8d5a474bf3ab1e.zip
dhcp: Request sending a RFC 1533- and 2132-compliant client-id
Some Internet gateways and Wi-Fi access points are unhappy when the DHCPv4 client-id option (61) is missing and will refuse to issue a DHCP lease. Adding the client-id option placates these devices. This patch requests that a RFC 1533- and 2132-compliant DHCP client-id option (61) be sent with DHCPv4 packets.
Diffstat (limited to 'src/dhcp.c')
-rw-r--r--src/dhcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index f84e394c..0ed5ead8 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -407,6 +407,8 @@ static int dhcp_request(struct connman_dhcp *dhcp)
if (getenv("CONNMAN_DHCP_DEBUG"))
g_dhcp_client_set_debug(dhcp_client, dhcp_debug, "DHCP");
+ g_dhcp_client_set_id(dhcp_client);
+
hostname = connman_utsname_get_hostname();
if (hostname != NULL)
g_dhcp_client_set_send(dhcp_client, G_DHCP_HOST_NAME, hostname);