[PATCH 7/9] dhcp: Request domain-search names according to RFC3397

Peter Meerwald pmeerw at pmeerw.net
Tue Sep 10 06:46:18 PDT 2013


---
 gdhcp/gdhcp.h |    1 +
 src/dhcp.c    |    1 +
 2 files changed, 2 insertions(+)

diff --git a/gdhcp/gdhcp.h b/gdhcp/gdhcp.h
index 0d79361..95aebb4 100644
--- a/gdhcp/gdhcp.h
+++ b/gdhcp/gdhcp.h
@@ -79,6 +79,7 @@ typedef enum {
 #define G_DHCP_HOST_NAME	0x0c
 #define G_DHCP_NTP_SERVER	0x2a
 #define G_DHCP_CLIENT_ID	0x3d
+#define G_DHCP_DOMAIN_SEARCH	0x77 /* RFC3397 */
 
 #define G_DHCPV6_CLIENTID	1
 #define G_DHCPV6_SERVERID	2
diff --git a/src/dhcp.c b/src/dhcp.c
index 273f918..c300357 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -541,6 +541,7 @@ static int dhcp_request(struct connman_dhcp *dhcp)
 	g_dhcp_client_set_request(dhcp_client, G_DHCP_DOMAIN_NAME);
 	g_dhcp_client_set_request(dhcp_client, G_DHCP_NTP_SERVER);
 	g_dhcp_client_set_request(dhcp_client, G_DHCP_ROUTER);
+	g_dhcp_client_set_request(dhcp_client, G_DHCP_DOMAIN_SEARCH);
 	g_dhcp_client_set_request(dhcp_client, 252);
 
 	g_dhcp_client_register_event(dhcp_client,
-- 
1.7.9.5




More information about the connman mailing list