summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/lib/printhostmap.c
blob: bed06078c18a83a72eaa72791c5c8a95311ca9e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "ipf.h"

void printhostmap(hmp, hv)
hostmap_t *hmp;
u_int hv;
{
	struct in_addr in;

	printf("%s,", inet_ntoa(hmp->hm_srcip));
	printf("%s -> ", inet_ntoa(hmp->hm_dstip));
	in.s_addr = htonl(hmp->hm_mapip.s_addr);
	printf("%s ", inet_ntoa(in));
	printf("(use = %d hv = %u)\n", hmp->hm_ref, hv);
}
OpenPOWER on IntegriCloud