aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2022-11-02 05:28:19 +0000
committerCy Schubert <cy@FreeBSD.org>2025-10-02 19:03:35 +0000
commit94758e72fdbd6b218e79884e22347eb357a7e51d (patch)
tree1103dd01fccf6bb0cc42daa349c8dade073ecc3a
parent2ed9abe1d873465d375b47ece0a379e1dbd99719 (diff)
ipfilter ippool: Flag deleted entries with "#"
List deleted entries prefixed by "#". This is consistent with other ippool list functions. Fixes: 7531c434a593 MFC after: 1 week
-rw-r--r--sbin/ipf/libipf/printpooldata.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ipf/libipf/printpooldata.c b/sbin/ipf/libipf/printpooldata.c
index bd5af316eb19..b203522734be 100644
--- a/sbin/ipf/libipf/printpooldata.c
+++ b/sbin/ipf/libipf/printpooldata.c
@@ -13,6 +13,8 @@ printpooldata(ip_pool_t *pool, int opts)
{
if (opts & OPT_SAVEOUT) {
+ if ((pool->ipo_flags & IPOOL_DELETE) != 0)
+ PRINTF("# ");
PRINTF("pool ");
} else if ((opts & OPT_DEBUG) == 0) {
if ((pool->ipo_flags & IPOOL_ANON) != 0)