4 * Copyright (C) 2002-2005 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
11 #define PRINTF (void)printf
12 #define FPRINTF (void)fprintf
15 iphtable_t
*printhash(hp
, copyfunc
, name
, opts
)
21 iphtent_t
*ipep
, **table
;
26 if ((*copyfunc
)((char *)hp
, (char *)&iph
, sizeof(iph
)))
29 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
);
54 if ((opts
& OPT_DEBUG
) == 0)