2 * Copyright (C) 2002 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
9 #define PRINTF (void)printf
10 #define FPRINTF (void)fprintf
12 void 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 switch (pool->ipo_unit)
62 printf("unknown(%d)", pool->ipo_unit);
65 if ((opts & OPT_DEBUG) == 0) {
66 PRINTF(" type = tree %s = %s\n",
67 isdigit(*pool->ipo_name) ? "number" : "name",
72 PRINTF("\tReferences: %d\tHits: %lu\n", pool->ipo_ref,
74 if ((pool->ipo_flags & IPOOL_DELETE) != 0)
76 PRINTF("\tNodes Starting at %p\n", pool->ipo_list);