4 * Copyright (C) 2012 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
13 printhash(hp, copyfunc, name, opts, fields)
20 iphtent_t *ipep, **table;
25 if ((*copyfunc)((char *)hp, (char *)&iph, sizeof(iph)))
28 if ((name != NULL) && strncmp(name, iph.iph_name, FR_GROUPLEN))
32 printhashdata(hp, opts);
34 if ((hp->iph_flags & IPHASH_DELETE) != 0)
37 if ((opts & OPT_DEBUG) == 0)
40 sz = iph.iph_size * sizeof(*table);
42 if ((*copyfunc)((char *)iph.iph_table, (char *)table, sz))
45 for (printed = 0, ipep = iph.iph_list; ipep != NULL; ) {
46 ipep = printhashnode(&iph, ipep, copyfunc, opts, fields);
54 if ((opts & OPT_DEBUG) == 0)