Skip to content

Commit 94758e7

Browse files
committed
ipfilter ippool: Flag deleted entries with "#"
List deleted entries prefixed by "#". This is consistent with other ippool list functions. Fixes: 7531c43 MFC after: 1 week
1 parent 2ed9abe commit 94758e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sbin/ipf/libipf/printpooldata.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ printpooldata(ip_pool_t *pool, int opts)
1313
{
1414

1515
if (opts & OPT_SAVEOUT) {
16+
if ((pool->ipo_flags & IPOOL_DELETE) != 0)
17+
PRINTF("# ");
1618
PRINTF("pool ");
1719
} else if ((opts & OPT_DEBUG) == 0) {
1820
if ((pool->ipo_flags & IPOOL_ANON) != 0)

0 commit comments

Comments
 (0)