xref: /titanic_51/usr/src/cmd/ipf/lib/common/printhostmap.c (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate #include "ipf.h"
2*7c478bd9Sstevel@tonic-gate 
3*7c478bd9Sstevel@tonic-gate void printhostmap(hmp, hv)
4*7c478bd9Sstevel@tonic-gate hostmap_t *hmp;
5*7c478bd9Sstevel@tonic-gate u_int hv;
6*7c478bd9Sstevel@tonic-gate {
7*7c478bd9Sstevel@tonic-gate 	printf("%s,", inet_ntoa(hmp->hm_srcip));
8*7c478bd9Sstevel@tonic-gate 	printf("%s -> ", inet_ntoa(hmp->hm_dstip));
9*7c478bd9Sstevel@tonic-gate 	printf("%s ", inet_ntoa(hmp->hm_mapip));
10*7c478bd9Sstevel@tonic-gate 	printf("(use = %d hv = %u)\n", hmp->hm_ref, hv);
11*7c478bd9Sstevel@tonic-gate }
12