Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Oct 2025 19:06:17 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f3ff6abb9d81 - main - ipfilter ippool: Prefix deleted entries with "#"
Message-ID:  <202510021906.592J6Htp078721@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510021906.592J6Htp078721>