diff options
author | 2007-10-16 08:07:56 +0000 | |
---|---|---|
committer | 2007-10-16 08:07:56 +0000 | |
commit | 558ada4142d1f4e9b0f1820c4062cbbccef14748 (patch) | |
tree | d14ab8a26ec47b512396061e617ef1f5ef86c814 /usr.sbin/ospf6ctl/ospf6ctl.c | |
parent | Properly adjust headers displayed when the screen contains few lines. (diff) | |
download | wireguard-openbsd-558ada4142d1f4e9b0f1820c4062cbbccef14748.tar.xz wireguard-openbsd-558ada4142d1f4e9b0f1820c4062cbbccef14748.zip |
Fix the output from "show neighbor".
It is not possible to fit the address of the neighbor(s) in the
short list, so we loose it...
It is still possible to see the IP address of the neighbor in the
output of "show neighbor detail".
ok claudio@
Diffstat (limited to 'usr.sbin/ospf6ctl/ospf6ctl.c')
-rw-r--r-- | usr.sbin/ospf6ctl/ospf6ctl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ospf6ctl/ospf6ctl.c b/usr.sbin/ospf6ctl/ospf6ctl.c index b282da8e014..75b5564aee2 100644 --- a/usr.sbin/ospf6ctl/ospf6ctl.c +++ b/usr.sbin/ospf6ctl/ospf6ctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospf6ctl.c,v 1.5 2007/10/15 02:16:35 deraadt Exp $ */ +/* $OpenBSD: ospf6ctl.c,v 1.6 2007/10/16 08:07:56 norby Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -142,8 +142,8 @@ main(int argc, char *argv[]) &ifidx, sizeof(ifidx)); break; case SHOW_NBR: - printf("%-15s %-3s %-12s %-8s %-15s %-9s %s\n", "ID", "Pri", - "State", "DeadTime", "Address", "Iface","Uptime"); + printf("%-15s %-3s %-12s %-9s %-11s %s\n", "ID", "Pri", + "State", "DeadTime", "Iface","Uptime"); /*FALLTHROUGH*/ case SHOW_NBR_DTAIL: imsg_compose(ibuf, IMSG_CTL_SHOW_NBR, 0, 0, NULL, 0); @@ -832,9 +832,9 @@ show_nbr_msg(struct imsg *imsg) if (asprintf(&state, "%s/%s", nbr_state_name(nbr->nbr_state), if_state_name(nbr->iface_state)) == -1) err(1, NULL); - printf("%-15s %-3d %-12s %-9s", inet_ntoa(nbr->id), + printf("%-15s %-3d %-12s %-10s", inet_ntoa(nbr->id), nbr->priority, state, fmt_timeframe_core(nbr->dead_timer)); - printf("%-15s %-9s %s\n", log_in6addr(&nbr->addr), nbr->name, + printf("%-11s %s\n", nbr->name, nbr->uptime == 0 ? "-" : fmt_timeframe_core(nbr->uptime)); free(state); break; |