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