git: e263821feacf - main - ipfilter radix_ipf: name is only valid with RDX_DEBUG

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Tue, 14 Dec 2021 14:20:13 UTC
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/src/commit/?id=e263821feacf59a14e9d648d9631c64b579021d5

commit e263821feacf59a14e9d648d9631c64b579021d5
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-12-13 21:18:04 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-12-14 14:19:20 +0000

    ipfilter radix_ipf: name is only valid with RDX_DEBUG
    
    ipf_rdx_node.name is only vaild when RDX_DEBUG is defined.
    
    MFC after:      1 week
---
 sys/contrib/ipfilter/netinet/radix_ipf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/contrib/ipfilter/netinet/radix_ipf.c b/sys/contrib/ipfilter/netinet/radix_ipf.c
index df0932de4181..9dc606bb8a11 100644
--- a/sys/contrib/ipfilter/netinet/radix_ipf.c
+++ b/sys/contrib/ipfilter/netinet/radix_ipf.c
@@ -1420,12 +1420,14 @@ add_addr(rnh, n, item)
 	setmask(&stp->mask, ttable[item].mask);
 	stp->next = myst_top;
 	myst_top = stp;
+#ifdef RDX_DEBUG
 	(void) sprintf(rn[0].name, "_BORN.0");
 	(void) sprintf(rn[1].name, "_BORN.1");
 	rn = ipf_rx_addroute(rnh, &stp->dst, &stp->mask, stp->nodes);
 	(void) sprintf(rn[0].name, "%d_NODE.0", item);
 	(void) sprintf(rn[1].name, "%d_NODE.1", item);
 	printf("ADD %d/%d %s/%s\n", n, item, rn[0].name, rn[1].name);
+#endif
 	nodecount++;
 	checktree(rnh);
 }