summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-05-15 11:07:47 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-05-15 11:07:47 +0000
commit91ab665a68b179b0f98b8b1f7f700357ff7a711b (patch)
tree5c8c0141428130da74edbfe4480a8b2e10f4acc8 /usr.sbin/bgpd
parente26155c9f4c29e271bf3badb1cc8f4c4184fd001 (diff)
printconf didn't handle the 'down' flag for peers
From: Stuart Henderson <stu@spacehopper.org>
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/printconf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/printconf.c b/usr.sbin/bgpd/printconf.c
index c6a7b2dd6a5..fcfbd76429b 100644
--- a/usr.sbin/bgpd/printconf.c
+++ b/usr.sbin/bgpd/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.62 2007/04/23 13:04:24 claudio Exp $ */
+/* $OpenBSD: printconf.c,v 1.63 2007/05/15 11:07:46 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -273,6 +273,8 @@ print_peer(struct peer_config *p, struct bgpd_config *conf, const char *c)
printf("%s\tdescr \"%s\"\n", c, p->descr);
if (p->remote_as)
printf("%s\tremote-as %s\n", c, log_as(p->remote_as));
+ if (p->down)
+ printf("%s\tdown\n", c);
if (p->distance > 1)
printf("%s\tmultihop %u\n", c, p->distance);
if (p->passive)