git: c50efdbe4aa4 - stable/15 - ipfilter ippool: Prefix deleted entries with "#"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Oct 2025 12:36:27 UTC
The branch stable/15 has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=c50efdbe4aa4b8afebdf8afe0893185203a43bb4
commit c50efdbe4aa4b8afebdf8afe0893185203a43bb4
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-11-02 05:34:54 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-10-09 12:36:20 +0000
ipfilter ippool: Prefix deleted entries with "#"
To maintain consistency with ippool list functions, prefix deleted
entries with "#".
(cherry picked from commit f3ff6abb9d816a68e65af5ed55552d152a58b5e4)
---
sbin/ipf/libipf/printhashdata.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sbin/ipf/libipf/printhashdata.c b/sbin/ipf/libipf/printhashdata.c
index 690243d63f1e..ba96a75a94d7 100644
--- a/sbin/ipf/libipf/printhashdata.c
+++ b/sbin/ipf/libipf/printhashdata.c
@@ -37,6 +37,8 @@ printhashdata(iphtable_t *hp, int opts)
}
PRINTF(" role=");
} else {
+ if ((hp->iph_flags & IPHASH_DELETE) == IPHASH_DELETE)
+ PRINTF("# ");
PRINTF("Hash Table %s: %s",
ISDIGIT(*hp->iph_name) ? "Number" : "Name",
hp->iph_name);