diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-12-12 23:15:40 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-12-12 23:15:40 +0000 |
commit | 7cda2a3f97752e58d1effa7a36fe6ba3831f61e3 (patch) | |
tree | 1c2385a1ec836ee4c67099acd6febfa6f722a679 /usr.sbin/bgpctl/bgpctl.c | |
parent | d3b3960504e6c9fb2adaf51fb6b093fe18233628 (diff) |
Make bgpctl priority aware.
Diffstat (limited to 'usr.sbin/bgpctl/bgpctl.c')
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index f04d03a5c0f..17fe16a6ff8 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.136 2008/12/10 23:57:10 sthen Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.137 2008/12/12 23:15:39 claudio Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -738,7 +738,7 @@ show_fib_head(void) printf("flags: * = valid, B = BGP, C = Connected, S = Static\n"); printf(" N = BGP Nexthop reachable via this route\n"); printf(" r = reject route, b = blackhole route\n\n"); - printf("flags destination gateway\n"); + printf("flags prio destination gateway\n"); } void @@ -801,7 +801,7 @@ show_fib_msg(struct imsg *imsg) if (asprintf(&p, "%s/%u", inet_ntoa(k->prefix), k->prefixlen) == -1) err(1, NULL); - printf("%-20s ", p); + printf("%4i %-20s ", k->priority, p); free(p); if (k->nexthop.s_addr) @@ -822,7 +822,7 @@ show_fib_msg(struct imsg *imsg) if (asprintf(&p, "%s/%u", log_in6addr(&k6->prefix), k6->prefixlen) == -1) err(1, NULL); - printf("%-20s ", p); + printf("%4i %-20s ", k6->priority, p); free(p); if (!IN6_IS_ADDR_UNSPECIFIED(&k6->nexthop)) |