summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-07-22 16:53:45 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-07-22 16:53:45 +0200
commitb96c6a652e6a9e6336b16ba7935a85e9c5e7f590 (patch)
tree1382a663143baa8367cc345f44c0dc8b609f31a2
parent15aa3f3f8240bf4f5dd30582258b7366c18173c0 (diff)
downloadconnman-b96c6a652e6a9e6336b16ba7935a85e9c5e7f590.tar.gz
connman-b96c6a652e6a9e6336b16ba7935a85e9c5e7f590.tar.bz2
connman-b96c6a652e6a9e6336b16ba7935a85e9c5e7f590.zip
Display hostname to dhcp-test
-rw-r--r--tools/dhcp-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/dhcp-test.c b/tools/dhcp-test.c
index a86ec2a6..133ed953 100644
--- a/tools/dhcp-test.c
+++ b/tools/dhcp-test.c
@@ -120,6 +120,10 @@ static void lease_available_cb(GDHCPClient *dhcp_client, gpointer user_data)
for (list = option_value; list; list = list->next)
printf("routers %s\n", (char *) list->data);
+ option_value = g_dhcp_client_get_option(dhcp_client, G_DHCP_HOST_NAME);
+ for (list = option_value; list; list = list->next)
+ printf("hostname %s\n", (char *) list->data);
+
print_timestamp();
}