From 70078a528416495a098e79d091e28f58d6d17980 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 28 Jun 2022 11:46:05 +0000 Subject: [PATCH] The default state of enhanced refresh is no. So flip logic. Fixes config regress. Found by anton@, discussed with tb@ --- usr.sbin/bgpd/printconf.c | 6 +++--- 1 file 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 @@ -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) -- 2.20.1