From b96c6a652e6a9e6336b16ba7935a85e9c5e7f590 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Thu, 22 Jul 2010 16:53:45 +0200 Subject: [PATCH] Display hostname to dhcp-test --- tools/dhcp-test.c | 4 ++++ 1 file changed, 4 insertions(+) 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(); } -- 2.7.4