printhashdata.c (41edb306f05651fcaf6c74f9e3557f59f80292e1) printhashdata.c (efeb8bffe34422937c7f8df836afb5b817366d16)
1/*
2 * Copyright (C) 2012 by Darren Reed.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 */
6
7#include "ipf.h"
8#include <ctype.h>
9
10
11void
1/*
2 * Copyright (C) 2012 by Darren Reed.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 */
6
7#include "ipf.h"
8#include <ctype.h>
9
10
11void
12printhashdata(hp, opts)
13 iphtable_t *hp;
14 int opts;
12printhashdata(iphtable_t *hp, int opts)
15{
16
17 if ((opts & OPT_DEBUG) == 0) {
18 if ((hp->iph_type & IPHASH_ANON) == IPHASH_ANON)
19 PRINTF("# 'anonymous' table refs %d\n", hp->iph_ref);
20 if ((hp->iph_flags & IPHASH_DELETE) == IPHASH_DELETE)
21 PRINTF("# ");
22 switch (hp->iph_type & ~IPHASH_ANON)

--- 72 unchanged lines hidden ---
13{
14
15 if ((opts & OPT_DEBUG) == 0) {
16 if ((hp->iph_type & IPHASH_ANON) == IPHASH_ANON)
17 PRINTF("# 'anonymous' table refs %d\n", hp->iph_ref);
18 if ((hp->iph_flags & IPHASH_DELETE) == IPHASH_DELETE)
19 PRINTF("# ");
20 switch (hp->iph_type & ~IPHASH_ANON)

--- 72 unchanged lines hidden ---