summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2012-11-15 19:55:08 +0000
committersthen <sthen@openbsd.org>2012-11-15 19:55:08 +0000
commit9c3743e08e1d96d029e704e5d17ba260957707d9 (patch)
tree25216e3ac4c01b3b4f5ecf02a8f759f1399d39ff
parentbuf_* -> ibuf_* in various log entries to reflect correct function names. (diff)
downloadwireguard-openbsd-9c3743e08e1d96d029e704e5d17ba260957707d9.tar.xz
wireguard-openbsd-9c3743e08e1d96d029e704e5d17ba260957707d9.zip
If max-prefix/restart are used, display the values in "bgpctl sh nei" output.
ok henning claudio benno
-rw-r--r--usr.sbin/bgpctl/bgpctl.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index 91455279fdb..928c2db51a9 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.166 2012/09/18 10:11:23 claudio Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.167 2012/11/15 19:55:08 sthen Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -634,6 +634,13 @@ show_neighbor_msg(struct imsg *imsg, enum neighbor_views nv)
printf("\n");
if (p->conf.descr[0])
printf(" Description: %s\n", p->conf.descr);
+ if (p->conf.max_prefix) {
+ printf(" Max-prefix: %u", p->conf.max_prefix);
+ if (p->conf.max_prefix_restart)
+ printf(" (restart %u)",
+ p->conf.max_prefix_restart);
+ printf("\n");
+ }
printf(" BGP version 4, remote router-id %s\n",
inet_ntoa(ina));
printf(" BGP state = %s", statenames[p->state]);