diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-01-27 19:03:08 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-01-27 19:03:08 +0000 |
commit | 2386f5ba74ff94b1f3aab3bbc7f9159d7ca0b7ca (patch) | |
tree | ea6d97dcd2eb4efedf8efef1146dbe2c7c046977 /usr.sbin/bgpctl/bgpctl.c | |
parent | c7d60c95b6911eaef0d7721bd9f7fe23f5c9c9fd (diff) |
Make sure that the graceful restart capability is printed in any case.
The printf() was only reachable if one of the other capabilities were set.
Diffstat (limited to 'usr.sbin/bgpctl/bgpctl.c')
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index 00e4e0fe45f..5b94122ee5c 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.112 2006/11/28 19:21:15 reyk Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.113 2007/01/27 19:03:07 claudio Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -509,7 +509,7 @@ show_neighbor_msg(struct imsg *imsg, enum neighbor_views nv) fmt_timeframe(p->stats.last_read), p->holdtime, p->holdtime/3); if (p->capa.peer.mp_v4 || p->capa.peer.mp_v6 || - p->capa.peer.refresh) { + p->capa.peer.refresh || p->capa.peer.restart) { printf(" Neighbor capabilities:\n"); if (p->capa.peer.mp_v4) { printf(" Multiprotocol extensions: IPv4"); |