Date: Sun, 10 Aug 2025 05:55:32 GMT From: Cy Schubert <cy@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 597601a23d5d - stable/13 - ipfilter: End (cleanup) the iterative search key Message-ID: <202508100555.57A5tWHl077565@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=597601a23d5de22dc6d25dad0f7d7ee054e60b08 commit 597601a23d5de22dc6d25dad0f7d7ee054e60b08 Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2025-07-07 23:37:07 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2025-08-10 05:55:14 +0000 ipfilter: End (cleanup) the iterative search key This results in not finding nodes in subsequent hash table listings. MFC after: 3 days (cherry picked from commit ac2e39b5ddf5d5c6bc3848e392670a00e5834450) --- 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?202508100555.57A5tWHl077565>