2 * Copyright (C) 2002 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
6 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
7 * Use is subject to license terms.
10 #pragma ident "%Z%%M% %I% %E% SMI"
14 #define PRINTF (void)printf
15 #define FPRINTF (void)fprintf
17 void printpooldata(pool
, opts
)
22 if ((opts
& OPT_DEBUG
) == 0) {
23 if ((pool
->ipo_flags
& IPOOL_ANON
) != 0)
24 PRINTF("# 'anonymous' tree %s\n", pool
->ipo_name
);
25 PRINTF("table role = ");
27 PRINTF("Name: %s", pool
->ipo_name
);
28 if ((pool
->ipo_flags
& IPOOL_ANON
) == IPOOL_ANON
)
34 switch (pool
->ipo_unit
)
61 PRINTF("unknown(%d)", pool
->ipo_unit
);
64 if ((opts
& OPT_DEBUG
) == 0) {
65 PRINTF(" type = tree number = %s\n", pool
->ipo_name
);
69 PRINTF("\tReferences: %d\tHits: %lu\n", pool
->ipo_ref
,
71 PRINTF("\tNodes Starting at %p\n", pool
->ipo_list
);