From nobody Tue Dec 14 14:20:13 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E997318EB7D6; Tue, 14 Dec 2021 14:20:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JD0rt1GJcz4mN4; Tue, 14 Dec 2021 14:20:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EC3B315FC; Tue, 14 Dec 2021 14:20:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BEEKDwL099190; Tue, 14 Dec 2021 14:20:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BEEKDj9099186; Tue, 14 Dec 2021 14:20:13 GMT (envelope-from git) Date: Tue, 14 Dec 2021 14:20:13 GMT Message-Id: <202112141420.1BEEKDj9099186@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: e263821feacf - main - ipfilter radix_ipf: name is only valid with RDX_DEBUG List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e263821feacf59a14e9d648d9631c64b579021d5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639491614; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=j4nEq28j2yxWYJ/yGieGMKqv3Cy72T8IhzIfei80oUs=; b=lJeUm1OdtanrYe3s+e8TtQ1rjueyXT/UvXRebz+M4NIiks3TGT/i3klMiz+7fYZCH6R6iV y99Li2lt9yz9bXw0NLNmZmkq2OdMV5PPgQO80onVkMIXdxDH6R/NCiSmUCZBoxeHpZJm3n nQr9ngdHGEquy0NDyl8OwU3qOAjMQ1hvej8QksOi+ZmNsuxp9ogOwZNdisYHt8+2Xh3lJc bXQOHdSvnZ/2IxTh1N2y+HLu/DzyRLiq6Atsv3drMQ4PYIMprx8UZPTaIYJ/r6B7Gnrsz4 gRzjWcPLBp/F8aVCIFBffpVtRfkaCIDBwp6SWEO7PvmLtkoBxjBERXG081Aa+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639491614; a=rsa-sha256; cv=none; b=MS+baFbk8bCeBAKDHFcD2yryNd8xpiVmR90+D/EvA6K1XlxNCqfjxn2G3IfQ5XcEreKoUT kr78Jn72lB1rtbvZc54gAc0hUncd4jmGYFnO1f/sXhyBjWiZcslBtWWBedIOZrhvsypi0E siRIHD7bJJwnogujmguIf04QkP5Req1O7J0dL7Le/Y1DLq212hObp0aZkW9IGsMfAmfjc5 QM/Bzg/o/+zrVbBbiqjsHrbnq4TnCmNlZC8pkl1u9tv1pGSHGv0hNAHgK1DVQAWlffQqem 9cxCY36uHYY5mzSX3rZxdq3bGsxPuBBRRumFgKRbK/mSK7nIhHEG9HdPNlujgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=e263821feacf59a14e9d648d9631c64b579021d5 commit e263821feacf59a14e9d648d9631c64b579021d5 Author: Cy Schubert AuthorDate: 2021-12-13 21:18:04 +0000 Commit: Cy Schubert 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); }