diff options
author | 2010-02-11 12:25:12 +0000 | |
---|---|---|
committer | 2010-02-11 12:25:12 +0000 | |
commit | 0c07fe63b49a069a667a1249da1fe801aed91bb5 (patch) | |
tree | 700b43f85e4b49a3fae50d16db5b2a69c908d569 | |
parent | No need for M_CANFAIL if M_NOWAIT is used. Found by Gleydson Soares. (diff) | |
download | wireguard-openbsd-0c07fe63b49a069a667a1249da1fe801aed91bb5.tar.xz wireguard-openbsd-0c07fe63b49a069a667a1249da1fe801aed91bb5.zip |
Force a space between address and nexthop. IPv6 is overflowing all size
restrictions and 2001:4bf8:bad:beef::/64fe80::20a:e4ff:fe39:5583 is not
acceptable.
-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 77e4f2dbb5e..36b892053d2 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.155 2010/01/10 00:16:23 claudio Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.156 2010/02/11 12:25:12 claudio Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -1053,7 +1053,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("%-5s %-20s%-15s %5s %5s %s\n", "flags", "destination", + printf("%-5s %-20s %-15s %5s %5s %s\n", "flags", "destination", "gateway", "lpref", "med", "aspath origin"); } @@ -1127,7 +1127,7 @@ show_rib_summary_msg(struct imsg *imsg) memcpy(&rib, imsg->data, sizeof(rib)); print_prefix(&rib.prefix, rib.prefixlen, rib.flags); - printf("%-15s ", log_addr(&rib.exit_nexthop)); + printf(" %-15s ", log_addr(&rib.exit_nexthop)); printf(" %5u %5u ", rib.local_pref, rib.med); |