The branch main has been updated by cy:

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

commit ac2e39b5ddf5d5c6bc3848e392670a00e5834450
Author:     Cy Schubert <c...@freebsd.org>
AuthorDate: 2025-07-07 23:37:07 +0000
Commit:     Cy Schubert <c...@freebsd.org>
CommitDate: 2025-07-07 23:37:07 +0000

    ipfilter: End (cleanup) the iterative search key
    
    This results in not finding nodes in subsequent hash table listings.
    
    MFC after:      3 days
---
 sbin/ipf/libipf/printhash_live.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sbin/ipf/libipf/printhash_live.c b/sbin/ipf/libipf/printhash_live.c
index 3caaa5e022fe..b8ee31b27597 100644
--- a/sbin/ipf/libipf/printhash_live.c
+++ b/sbin/ipf/libipf/printhash_live.c
@@ -61,5 +61,8 @@ printhash_live(iphtable_t *hp, int fd, char *name, int opts, 
wordtab_t *fields)
 
        if ((opts & OPT_DEBUG) == 0)
                PRINTF(" };\n");
+
+       (void) ioctl(fd,SIOCIPFDELTOK, &iter.ili_key);
+
        return (hp->iph_next);
 }

Reply via email to