git: 389e57881be8 - stable/14 - ipfilter: End (cleanup) the iterative search key
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 10 Aug 2025 05:24:44 UTC
The branch stable/14 has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=389e57881be84106e3036ef1b205a17826fb33dc
commit 389e57881be84106e3036ef1b205a17826fb33dc
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:23:57 +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);
}