git: 5b44879e7727 - stable/12 - ipfilter radix_ipf: name is only valid with RDX_DEBUG
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Dec 2021 23:37:58 UTC
The branch stable/12 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=5b44879e772740db85c377bde046a4be6034c465 commit 5b44879e772740db85c377bde046a4be6034c465 Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2021-12-13 21:18:04 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2021-12-21 23:37:24 +0000 ipfilter radix_ipf: name is only valid with RDX_DEBUG ipf_rdx_node.name is only vaild when RDX_DEBUG is defined. (cherry picked from commit e263821feacf59a14e9d648d9631c64b579021d5) --- 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); }