4 * Copyright (C) 2002 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
11 #define PRINTF (void)printf
12 #define FPRINTF (void)fprintf
14 void printpooldata(pool
, opts
)
19 if ((opts
& OPT_DEBUG
) == 0) {
20 if ((pool
->ipo_flags
& IPOOL_ANON
) != 0)
21 PRINTF("# 'anonymous' tree %s\n", pool
->ipo_name
);
22 if ((pool
->ipo_flags
& IPOOL_DELETE
) != 0)
24 PRINTF("table role = ");
26 if ((pool
->ipo_flags
& IPOOL_DELETE
) != 0)
29 isdigit(*pool
->ipo_name
) ? "Number" : "Name",
31 if ((pool
->ipo_flags
& IPOOL_ANON
) == IPOOL_ANON
)
37 switch (pool
->ipo_unit
)
64 printf("unknown(%d)", pool
->ipo_unit
);
67 if ((opts
& OPT_DEBUG
) == 0) {
68 PRINTF(" type = tree %s = %s\n",
69 isdigit(*pool
->ipo_name
) ? "number" : "name",
74 PRINTF("\tReferences: %d\tHits: %lu\n", pool
->ipo_ref
,
76 if ((pool
->ipo_flags
& IPOOL_DELETE
) != 0)
78 PRINTF("\tNodes Starting at %p\n", pool
->ipo_list
);