From: Samuel Ortiz Date: Thu, 22 Jul 2010 14:53:45 +0000 (+0200) Subject: Display hostname to dhcp-test X-Git-Tag: 0.55~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b96c6a652e6a9e6336b16ba7935a85e9c5e7f590;p=platform%2Fupstream%2Fconnman.git Display hostname to dhcp-test --- diff --git a/tools/dhcp-test.c b/tools/dhcp-test.c index a86ec2a..133ed95 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(); }