The branch main has been updated by cy:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=94758e72fdbd6b218e79884e22347eb357a7e51d

commit 94758e72fdbd6b218e79884e22347eb357a7e51d
Author:     Cy Schubert <[email protected]>
AuthorDate: 2022-11-02 05:28:19 +0000
Commit:     Cy Schubert <[email protected]>
CommitDate: 2025-10-02 19:03:35 +0000

    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
---
 sbin/ipf/libipf/printpooldata.c | 2 ++
 1 file changed, 2 insertions(+)

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)

Reply via email to