summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2012-11-15 19:55:09 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2012-11-15 19:55:09 +0000
commita7a1cfc67474f4691dad7eda45409979080b0a3e (patch)
treecf70d7f6ece8306696d007ec7fd82f298d24136c
parent683dfdde5884e49f369f228c794ce6b660c8cde1 (diff)
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]);