| * Copyright (C) 2002-2005 by Darren Reed. |
| * See the IPFILTER.LICENCE file for details on licencing. |
| #define PRINTF (void)printf |
| #define FPRINTF (void)fprintf |
| iphtable_t *printhash(hp, copyfunc, name, opts) |
| iphtent_t *ipep, **table; |
| if ((*copyfunc)((char *)hp, (char *)&iph, sizeof(iph))) |
| if ((name != NULL) && strncmp(name, iph.iph_name, FR_GROUPLEN)) |
| if ((hp->iph_flags & IPHASH_DELETE) != 0) |
| if ((opts & OPT_DEBUG) == 0) |
| sz = iph.iph_size * sizeof(*table); |
| if ((*copyfunc)((char *)iph.iph_table, (char *)table, sz)) |
| for (printed = 0, ipep = iph.iph_list; ipep != NULL; ) { |
| ipep = printhashnode(&iph, ipep, copyfunc, opts); |
| if ((opts & OPT_DEBUG) == 0) |