git: ac2e39b5ddf5 - main - ipfilter: End (cleanup) the iterative search key
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Jul 2025 23:58:38 UTC
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);
}