git: 517430d26232 - stable/13 - ipfilter ippool: Prefix deleted entries with "#"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Oct 2025 12:37:03 UTC
The branch stable/13 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=517430d262325c58f31310deb01c1a63ea5ef406 commit 517430d262325c58f31310deb01c1a63ea5ef406 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:57 +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);