2 * Copyright (C) 2012 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
12 printpooldata(pool, opts)
17 if ((opts & OPT_DEBUG) == 0) {
18 if ((pool->ipo_flags & IPOOL_ANON) != 0)
19 PRINTF("# 'anonymous' tree %s\n", pool->ipo_name);
20 if ((pool->ipo_flags & IPOOL_DELETE) != 0)
22 PRINTF("table role=");
24 if ((pool->ipo_flags & IPOOL_DELETE) != 0)
27 ISDIGIT(*pool->ipo_name) ? "Number" : "Name",
29 if ((pool->ipo_flags & IPOOL_ANON) == IPOOL_ANON)
35 printunit(pool->ipo_unit);
37 if ((opts & OPT_DEBUG) == 0) {
38 PRINTF(" type=tree %s=%s\n",
39 (!*pool->ipo_name || ISDIGIT(*pool->ipo_name)) ? \
40 "number" : "name", pool->ipo_name);
44 PRINTF("\tReferences: %d\tHits: %lu\n", pool->ipo_ref,
46 if ((pool->ipo_flags & IPOOL_DELETE) != 0)
48 PRINTF("\tNodes Starting at %p\n", pool->ipo_list);