From: claudio Date: Tue, 28 Jun 2022 11:46:05 +0000 (+0000) Subject: The default state of enhanced refresh is no. So flip logic. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=70078a528416495a098e79d091e28f58d6d17980;p=openbsd The default state of enhanced refresh is no. So flip logic. Fixes config regress. Found by anton@, discussed with tb@ --- 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 @@ -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)