projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15aa3f3
)
Display hostname to dhcp-test
author
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 22 Jul 2010 14:53:45 +0000
(16:53 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 22 Jul 2010 14:53:45 +0000
(16:53 +0200)
tools/dhcp-test.c
patch
|
blob
|
history
diff --git
a/tools/dhcp-test.c
b/tools/dhcp-test.c
index
a86ec2a
..
133ed95
100644
(file)
--- 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();
}