4 * Copyright (C) 2012 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
13 printpoolnode(np, opts, fields)
21 for (i = 0; fields[i].w_value != 0; i++) {
22 printpoolfield(np, IPLT_POOL, i);
23 if (fields[i + 1].w_value != 0)
27 } else if ((opts & OPT_DEBUG) == 0) {
29 if (np->ipn_info == 1)
31 printip(np->ipn_addr.adf_family,
32 (u_32_t *)&np->ipn_addr.adf_addr.in4);
33 printmask(np->ipn_addr.adf_family,
34 (u_32_t *)&np->ipn_mask.adf_addr);
36 PRINTF("\tAddress: %s%s", np->ipn_info ? "! " : "",
37 inet_ntoa(np->ipn_addr.adf_addr.in4));
38 printmask(np->ipn_addr.adf_family,
39 (u_32_t *)&np->ipn_mask.adf_addr);
41 PRINTF("\n\t\tHits %"PRIu64"\tBytes %"PRIu64"\tName %s\tRef %d\n",
42 np->ipn_hits, np->ipn_bytes,
43 np->ipn_name, np->ipn_ref);
45 PRINTF("\n\t\tHits %lu\tBytes %lu\tName %s\tRef %d\n",
46 np->ipn_hits, np->ipn_bytes,
47 np->ipn_name, np->ipn_ref);