summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl/bgpctl.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-04-27 04:06:11 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-04-27 04:06:11 +0000
commit79460cca141e47030b65dc62e75efd1f640ab5bb (patch)
treee413832fa2a3ced44da202855633b8769395089a /usr.sbin/bgpctl/bgpctl.c
parentae9a95e5a45c594bab5d1a3640e2b549f561b252 (diff)
print route refresh capability if present
Diffstat (limited to 'usr.sbin/bgpctl/bgpctl.c')
-rw-r--r--usr.sbin/bgpctl/bgpctl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index 36ed6dcb5ab..2c45082d379 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.53 2004/04/25 23:31:16 henning Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.54 2004/04/27 04:06:10 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -336,7 +336,7 @@ show_neighbor_msg(struct imsg *imsg, enum neighbor_views nv)
printf(" Last read %s, holdtime %us, keepalive interval %us\n",
fmt_timeframe(p->stats.last_read),
p->holdtime, p->holdtime/3);
- if (p->capa.mp_v4 || p->capa.mp_v6) {
+ if (p->capa.mp_v4 || p->capa.mp_v6 || p->capa.refresh) {
printf(" Neighbor capabilities:\n");
if (p->capa.mp_v4) {
printf(" Multiprotocol extensions: IPv4:");
@@ -346,6 +346,8 @@ show_neighbor_msg(struct imsg *imsg, enum neighbor_views nv)
printf(" Multiprotocol extensions: IPv6:");
print_neighbor_capa_mp_safi(p->capa.mp_v6);
}
+ if (p->capa.refresh)
+ printf(" Route Refresh\n");
}
printf("\n");
switch (nv) {