diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2009-09-15 09:45:13 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2009-09-15 09:45:13 +0000 |
commit | 3fc21b44e9512152a48c83f4a8f0da37a597ce65 (patch) | |
tree | eabf34f66bd83c97525f38d3645c6dabc00619b8 /usr.sbin | |
parent | 7762cf17866145c616c71155a99bb1f5ef62eb6a (diff) |
In bgpctl sh nei, display whether a neighbour is set to use passive
mode and/or E-BGP multihop. Ok and suggestions from claudio@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index 7fbf1598e70..922db1c45b2 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.146 2009/09/14 11:49:25 claudio Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.147 2009/09/15 09:45:12 sthen Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -549,6 +549,10 @@ show_neighbor_msg(struct imsg *imsg, enum neighbor_views nv) printf(", Template"); if (p->conf.cloned) printf(", Cloned"); + if (p->conf.passive) + printf(", Passive"); + if (p->conf.ebgp && p->conf.distance > 1) + printf(", Multihop (%u)", (int)p->conf.distance); printf("\n"); if (p->conf.descr[0]) printf(" Description: %s\n", p->conf.descr); |