| * Copyright (C) 2002-2005 by Darren Reed. |
| * See the IPFILTER.LICENCE file for details on licencing. |
| #define PRINTF (void)printf |
| #define FPRINTF (void)fprintf |
| iphtent_t *printhashnode(iph, ipep, copyfunc, opts) |
| if ((*copyfunc)(ipep, &ipe, sizeof(ipe))) |
| ipe.ipe_addr.in4_addr = htonl(ipe.ipe_addr.in4_addr); |
| ipe.ipe_mask.in4_addr = htonl(ipe.ipe_mask.in4_addr); |
| if ((opts & OPT_DEBUG) != 0) { |
| inet_ntoa(ipe.ipe_addr.in4)); |
| printmask((u_32_t *)&ipe.ipe_mask.in4_addr); |
| PRINTF("\tRef. Count: %d\tGroup: %s\n", ipe.ipe_ref, |
| printip((u_32_t *)&ipe.ipe_addr.in4_addr); |
| printmask((u_32_t *)&ipe.ipe_mask.in4_addr); |
| if (ipe.ipe_value != 0) { |
| switch (iph->iph_type & ~IPHASH_ANON) |
| if (strncmp(ipe.ipe_group, iph->iph_name, |
| PRINTF(", group = %s", ipe.ipe_group); |