summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-11-18 16:57:29 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-11-18 16:57:29 +0000
commite112c79850e5d494d63994f614589d7f82c98411 (patch)
tree7227583de5bbbd0f806e60ebd25baf9593419db8 /usr.sbin
parent1c19d01f867c9efd6eeb98b1c6e1c43f932ad6e4 (diff)
cope with changes in capabilities announcement shitz
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpctl/bgpctl.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index c4fd6ae4c27..5ae75f431d1 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.69 2004/11/02 11:46:17 henning Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.70 2004/11/18 16:57:28 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -419,17 +419,18 @@ 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 || p->capa.refresh) {
+ if (p->capa.peer.mp_v4 || p->capa.peer.mp_v6 ||
+ p->capa.peer.refresh) {
printf(" Neighbor capabilities:\n");
- if (p->capa.mp_v4) {
+ if (p->capa.peer.mp_v4) {
printf(" Multiprotocol extensions: IPv4");
- print_neighbor_capa_mp_safi(p->capa.mp_v4);
+ print_neighbor_capa_mp_safi(p->capa.peer.mp_v4);
}
- if (p->capa.mp_v6) {
+ if (p->capa.peer.mp_v6) {
printf(" Multiprotocol extensions: IPv6");
- print_neighbor_capa_mp_safi(p->capa.mp_v6);
+ print_neighbor_capa_mp_safi(p->capa.peer.mp_v6);
}
- if (p->capa.refresh)
+ if (p->capa.peer.refresh)
printf(" Route Refresh\n");
}
printf("\n");