git: 4d44715e085a - stable/12 - ipfilter: Document count_mask_bits() arguments

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Fri, 18 Nov 2022 01:11:09 UTC
The branch stable/12 has been updated by cy:

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

commit 4d44715e085a2c7af4c28da4711aa1cc5ff538c8
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-11-14 23:58:02 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
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 */