git: f3ff6abb9d81 - main - ipfilter ippool: Prefix deleted entries with "#"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Oct 2025 19:06:17 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=f3ff6abb9d816a68e65af5ed55552d152a58b5e4
commit f3ff6abb9d816a68e65af5ed55552d152a58b5e4
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-11-02 05:34:54 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-10-02 19:03:35 +0000
ipfilter ippool: Prefix deleted entries with "#"
To maintain consistency with ippool list functions, prefix deleted
entries with "#".
MFC after: 1 week
---
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);