2 * Copyright (C) 2012 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
11 printhash(hp, copyfunc, name, opts, fields)
18 iphtent_t *ipep, **table;
23 if ((*copyfunc)((char *)hp, (char *)&iph, sizeof(iph)))
26 if ((name != NULL) && strncmp(name, iph.iph_name, FR_GROUPLEN))
30 printhashdata(hp, opts);
32 if ((hp->iph_flags & IPHASH_DELETE) != 0)
35 if ((opts & OPT_DEBUG) == 0)
38 sz = iph.iph_size * sizeof(*table);
40 if ((*copyfunc)((char *)iph.iph_table, (char *)table, sz))
43 for (printed = 0, ipep = iph.iph_list; ipep != NULL; ) {
44 ipep = printhashnode(&iph, ipep, copyfunc, opts, fields);
52 if ((opts & OPT_DEBUG) == 0)