The branch main has been updated by cy:

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

commit ca4abebcf80e282b2e5d33556d47ad9a50d13ba0
Author:     Cy Schubert <c...@freebsd.org>
AuthorDate: 2025-07-07 17:38:11 +0000
Commit:     Cy Schubert <c...@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)

Reply via email to