summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/lib/printhostmap.c
blob: cb5f8e7498a50f9bbce63a9565134c051a88ce5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*	$FreeBSD$	*/

#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