Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jul 2025 23:58:38 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: ac2e39b5ddf5 - main - ipfilter: End (cleanup) the iterative search key
Message-ID:  <202507072358.567NwcLM019950@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=ac2e39b5ddf5d5c6bc3848e392670a00e5834450

commit ac2e39b5ddf5d5c6bc3848e392670a00e5834450
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2025-07-07 23:37:07 +0000
Commit:     Cy Schubert <cy@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);
 }



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