From nobody Fri Nov 18 01:11:09 2022 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 4NCzHx5mN8z4hk0N; Fri, 18 Nov 2022 01:11:09 +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 4NCzHx577pz3pwT; Fri, 18 Nov 2022 01:11:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668733869; 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=ncOqSJZ49z1n8ju/it+UEGzucBNWcchdOYYaghNGyAU=; b=tY27H5QC1lqBiK+2lLtokRAW/CuqZMCZCXn94oSohDsb6vD7dQkzlxleGoy3I3DUv3nJma 7CRlYyo0gi0KOoMN8CCc5+nMkHVyw5qiTXSPSjq+/izdB/SDgrgPgNPtoL4jl/gO4ufIy6 azLmVQhBIHgPkUk+B2gsonpC6XzadVKXMMh9ZRrFPtJpqmqr7BGeePSpyKiR7UvQtpdzSn 37Nm9cgqeySY0IBXE+B0gMRdzxCbEzHhGEwORP0/gxj2vye4kkbFuL7+xvsesOWlb8Iv2f Vs2dgHi2LtiK33BM1TnPNZc+PoA7a0zKUTafAeKbDwIWjRtjG7snQoHrnsisfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668733869; 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=ncOqSJZ49z1n8ju/it+UEGzucBNWcchdOYYaghNGyAU=; b=SQgsM7Cf0XuqI5QCx/ioPli+75wiezAn2PpDyI5gh8paBSs5Ub5l9HxOVFtMQKKHNSjzFo NVCTZn5QBxGeCLbci6ezEaaxfYia1lQ0AQmBBHqrkpBQasVNrzNx0dKO/DXeprfQfPPtNJ p4ftoZJ+xfO/gXrKUq7vcX/6EdgC209bXBxOUt+2RdX/X/Lz7dthOnJRTen/89ZiWsUcWy jn/v+Y6D2eoncbhpu8Xx2F/R5hcxGpb6ocb7KSG2fO0nwBqWEGzdF2FEEh1Na2JVq3v1Fy SwmA0iGbifFLhYQubsMOOnkcrd0si3Sh7HLJL5OeW+holIhEW8pF9E9tdMRKUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668733869; a=rsa-sha256; cv=none; b=LiX7FTwcgcj+allT3ULuL4+s2+CDYXjQRT/0lkeX4+YmOdBHTu50mWN2Q2Sbtw5WVrJ27W SQsR6uW3JXQXtgl3dLwd85zMf8cC/P28gmLLoHmfUUgDSnmrF3ErR7bbgl0bmQpWGz8Jd/ LTW4Z0BHBENFsU5WxmV5ZcaSDefTPjR9cJEWK9eb4RVnqc9g6N6+Jw5Vc1c9CWBOla49Zn 0MfbGmtXlxp4yfXTpHjkCWFBS0F8EiiSJEJwJPTmYYHYPx6aegVg0DpXwkWWVgwvz2yiGC YVRtuGupsKUImGdHxhlUmCSuE3KO81nx8C7PIOIvrWEq1PPPnR8HwQCuwl4ECw== 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 4NCzHx4CYSz12hP; Fri, 18 Nov 2022 01:11:09 +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 2AI1B9JK061657; Fri, 18 Nov 2022 01:11:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AI1B9Z6061656; Fri, 18 Nov 2022 01:11:09 GMT (envelope-from git) Date: Fri, 18 Nov 2022 01:11:09 GMT Message-Id: <202211180111.2AI1B9Z6061656@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Cy Schubert Subject: git: 4d44715e085a - stable/12 - ipfilter: Document count_mask_bits() arguments 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/stable/12 X-Git-Reftype: branch X-Git-Commit: 4d44715e085a2c7af4c28da4711aa1cc5ff538c8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=4d44715e085a2c7af4c28da4711aa1cc5ff538c8 commit 4d44715e085a2c7af4c28da4711aa1cc5ff538c8 Author: Cy Schubert AuthorDate: 2022-11-14 23:58:02 +0000 Commit: Cy Schubert CommitDate: 2022-11-18 00:27:46 +0000 ipfilter: Document count_mask_bits() arguments Document arguments input to count_mask_bits(). (cherry picked from commit 1ffab636dac8e52d4b3d5a2cb40c93a229404ffd) --- sys/netpfil/ipfilter/netinet/radix_ipf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netpfil/ipfilter/netinet/radix_ipf.c b/sys/netpfil/ipfilter/netinet/radix_ipf.c index 031452da9f45..0ab4431c21ca 100644 --- a/sys/netpfil/ipfilter/netinet/radix_ipf.c +++ b/sys/netpfil/ipfilter/netinet/radix_ipf.c @@ -54,6 +54,8 @@ static ipf_rdx_node_t *ipf_rx_match(ipf_rdx_head_t *, addrfamily_t *); /* ------------------------------------------------------------------------ */ /* Function: count_mask_bits */ /* Returns: number of consecutive bits starting at "mask". */ +/* Parameters: mask(I) - netmask */ +/* lastp(I) - pointer to last word with a bit set */ /* */ /* Count the number of bits set in the address section of addrfamily_t and */ /* return both that number and a pointer to the last word with a bit set if */