Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jul 2025 23:04:18 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ca4abebcf80e - main - ipfilter: Save unit in hash table entry
Message-ID:  <202507072304.567N4I9E025970@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by cy:

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

commit ca4abebcf80e282b2e5d33556d47ad9a50d13ba0
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2025-07-07 17:38:11 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-07-07 23:03:00 +0000

    ipfilter: Save unit in hash table entry
    
    As with tree tables the unit must also be saved in hash tables.
    
    MFC after:      1 week
---
 sys/netpfil/ipfilter/netinet/ip_htable.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/netpfil/ipfilter/netinet/ip_htable.c b/sys/netpfil/ipfilter/netinet/ip_htable.c
index 22d427b87a71..e54b739df361 100644
--- a/sys/netpfil/ipfilter/netinet/ip_htable.c
+++ b/sys/netpfil/ipfilter/netinet/ip_htable.c
@@ -343,6 +343,7 @@ ipf_htable_create(ipf_main_softc_t *softc, void *arg, iplookupop_t *op)
 	iph->iph_ref = 1;
 	iph->iph_list = NULL;
 	iph->iph_tail = &iph->iph_list;
+	iph->iph_unit = unit;
 	iph->iph_next = softh->ipf_htables[unit + 1];
 	iph->iph_pnext = &softh->ipf_htables[unit + 1];
 	if (softh->ipf_htables[unit + 1] != NULL)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507072304.567N4I9E025970>