]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ipfilter/lib/printhostmap.c
This commit was generated by cvs2svn to compensate for changes in r159609,
[FreeBSD/FreeBSD.git] / contrib / ipfilter / lib / printhostmap.c
1 /*      $FreeBSD$       */
2
3 #include "ipf.h"
4
5 void printhostmap(hmp, hv)
6 hostmap_t *hmp;
7 u_int hv;
8 {
9         struct in_addr in;
10
11         printf("%s,", inet_ntoa(hmp->hm_srcip));
12         printf("%s -> ", inet_ntoa(hmp->hm_dstip));
13         in.s_addr = htonl(hmp->hm_mapip.s_addr);
14         printf("%s ", inet_ntoa(in));
15         printf("(use = %d hv = %u)\n", hmp->hm_ref, hv);
16 }