diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-06-13 08:16:31 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-06-13 08:16:31 +0000 |
commit | dbe8594d8a5a6212a7162307ae6ff405a24bc2b8 (patch) | |
tree | 9fcba188d239511a6d0da44b25b606682cc42d23 | |
parent | 25a54e0ee37848dde39d7a7f88fc0658c0eebdaa (diff) |
Properly align the show rib output. flags is 5 chars long not 4.
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index f17349a3189..002ac46c9a0 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.86 2005/06/10 08:30:38 claudio Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.87 2005/06/13 08:16:30 claudio Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -903,7 +903,7 @@ show_rib_summary_head(void) printf( "flags: * = Valid, > = Selected, I = via IBGP, A = Announced\n"); printf("origin: i = IGP, e = EGP, ? = Incomplete\n\n"); - printf("%-4s %-20s%-15s %5s %5s %s\n", "flags", "destination", + printf("%-5s %-20s%-15s %5s %5s %s\n", "flags", "destination", "gateway", "lpref", "med", "aspath origin"); } @@ -926,7 +926,7 @@ print_prefix(struct bgpd_addr *prefix, u_int8_t prefixlen, u_int8_t flags) if (asprintf(&p, "%s/%u", log_addr(prefix), prefixlen) == -1) err(1, NULL); - printf("%-4s %-20s", flagstr, p); + printf("%-5s %-20s", flagstr, p); free(p); } |