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
This commit is contained in:
Cy Schubert 2021-12-13 13:18:04 -08:00
parent 8d2a8d243e
commit e263821fea

View File

@ -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);
}