From df327f6d81be9c73acba7b4edfa4f9336fcb686c Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 24 Dec 2010 15:10:14 +0100 Subject: Use the app_info->name instead of the hostname This makes more sense in case you run BCS, SGSN and other components on the same host. Having multiple telnet sessions with the same prompt can otherwise be confusing. --- src/vty/vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vty/vty.c b/src/vty/vty.c index 5c5a908d..a5b16dce 100644 --- a/src/vty/vty.c +++ b/src/vty/vty.c @@ -306,7 +306,7 @@ static void vty_prompt(struct vty *vty) const char *hostname; if (vty->type == VTY_TERM) { - hostname = host.name; + hostname = host.app_info->name; if (!hostname) { uname(&names); hostname = names.nodename; -- cgit v1.2.3