summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2022-06-28 11:46:06 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2022-06-28 11:46:06 +0000
commit0d012e491d84f6dbb71db4f1a6fc6b343a15ff5a (patch)
treef8348e81f98dc4e83f27204795debe591e307301 /usr.sbin/bgpd
parent7e517719d3d9bacca2bc613c286ff4de9f5537cf (diff)
The default state of enhanced refresh is no. So flip logic.
Fixes config regress. Found by anton@, discussed with tb@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/printconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/printconf.c b/usr.sbin/bgpd/printconf.c
index 6ec6205c4ac..e707185b5b7 100644
--- a/usr.sbin/bgpd/printconf.c
+++ b/usr.sbin/bgpd/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.154 2022/06/27 13:26:51 claudio Exp $ */
+/* $OpenBSD: printconf.c,v 1.155 2022/06/28 11:46:05 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -782,8 +782,8 @@ print_announce(struct peer_config *p, const char *c)
if (p->capabilities.refresh == 0)
printf("%s\tannounce refresh no\n", c);
- if (p->capabilities.enhanced_rr == 0)
- printf("%s\tannounce enhanced refresh no\n", c);
+ if (p->capabilities.enhanced_rr == 1)
+ printf("%s\tannounce enhanced refresh yes\n", c);
if (p->capabilities.grestart.restart == 0)
printf("%s\tannounce restart no\n", c);
if (p->capabilities.as4byte == 0)