Skip to content

Commit f3ff6ab

Browse files
committed
ipfilter ippool: Prefix deleted entries with "#"
To maintain consistency with ippool list functions, prefix deleted entries with "#". MFC after: 1 week
1 parent 94758e7 commit f3ff6ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sbin/ipf/libipf/printhashdata.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ printhashdata(iphtable_t *hp, int opts)
3737
}
3838
PRINTF(" role=");
3939
} else {
40+
if ((hp->iph_flags & IPHASH_DELETE) == IPHASH_DELETE)
41+
PRINTF("# ");
4042
PRINTF("Hash Table %s: %s",
4143
ISDIGIT(*hp->iph_name) ? "Number" : "Name",
4244
hp->iph_name);

0 commit comments

Comments
 (0)