From 1b70bf5379d2bcb99d85eefdbc34eaae23b30afa Mon Sep 17 00:00:00 2001 From: claudio Date: Mon, 8 Jun 2026 12:26:45 +0000 Subject: [PATCH] announce as-4byte uses a hyphen in the name. Fix printconf to output the statement correctly. --- 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 083fcead97b..74cf82bdd9e 100644 --- a/usr.sbin/bgpd/printconf.c +++ b/usr.sbin/bgpd/printconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printconf.c,v 1.187 2026/06/02 08:40:02 claudio Exp $ */ +/* $OpenBSD: printconf.c,v 1.188 2026/06/08 12:26:45 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -954,9 +954,9 @@ print_announce(struct peer_config *p, const char *c) printf("%s\tannounce graceful notification yes\n", c); if (p->capabilities.as4byte == 1) - printf("%s\tannounce as4byte yes\n", c); + printf("%s\tannounce as-4byte yes\n", c); else if (p->capabilities.as4byte == 0) - printf("%s\tannounce as4byte no\n", c); + printf("%s\tannounce as-4byte no\n", c); if (p->capabilities.ext_msg == 2) printf("%s\tannounce extended message enforce\n", c);