diff options
author | Michele Marchetto <michele@cvs.openbsd.org> | 2009-08-01 12:47:03 +0000 |
---|---|---|
committer | Michele Marchetto <michele@cvs.openbsd.org> | 2009-08-01 12:47:03 +0000 |
commit | 90064a08f94704ce771bc1cf9cc862752d66cbea (patch) | |
tree | 71709dba288f3c7ee6834d77424255585e301f66 /usr.sbin/ldpctl | |
parent | d4ab7941f00aa23114d379aef18dde3f0acb66d1 (diff) |
Correctly print interface state and neighbor uptime in ldpctl show neighbor.
Diffstat (limited to 'usr.sbin/ldpctl')
-rw-r--r-- | usr.sbin/ldpctl/ldpctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldpctl/ldpctl.c b/usr.sbin/ldpctl/ldpctl.c index 49cd275c6d0..cc49650131e 100644 --- a/usr.sbin/ldpctl/ldpctl.c +++ b/usr.sbin/ldpctl/ldpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ldpctl.c,v 1.2 2009/06/13 16:47:32 michele Exp $ +/* $OpenBSD: ldpctl.c,v 1.3 2009/08/01 12:47:02 michele Exp $ * * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -112,7 +112,7 @@ main(int argc, char *argv[]) &ifidx, sizeof(ifidx)); break; case SHOW_NBR: - printf("%-15s %-15s %-15s %-9s %-10s\n", "ID", + printf("%-15s %-18s %-15s %-9s %-10s\n", "ID", "State", "Address", "Iface", "Uptime"); imsg_compose(ibuf, IMSG_CTL_SHOW_NBR, 0, 0, -1, NULL, 0); break; @@ -346,7 +346,7 @@ 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 %-16s", inet_ntoa(nbr->id), + printf("%-15s %-19s", inet_ntoa(nbr->id), state); printf("%-15s %-10s", inet_ntoa(nbr->addr), nbr->name); printf("%-15s\n", nbr->uptime == 0 ? "-" : |