]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/ipfilter/lib/printhostmap.c
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / ipfilter / lib / printhostmap.c
1 /*      $FreeBSD$       */
2
3 /*
4  * Copyright (C) 2002-2005 by Darren Reed.
5  * 
6  * See the IPFILTER.LICENCE file for details on licencing.  
7  *   
8  * $Id: printhostmap.c,v 1.3.2.3 2006/09/30 21:42:07 darrenr Exp $ 
9  */     
10
11 #include "ipf.h"
12
13 void printhostmap(hmp, hv)
14 hostmap_t *hmp;
15 u_int hv;
16 {
17
18         printf("%s,", inet_ntoa(hmp->hm_srcip));
19         printf("%s -> ", inet_ntoa(hmp->hm_dstip));
20         printf("%s ", inet_ntoa(hmp->hm_mapip));
21         printf("(use = %d hv = %u)\n", hmp->hm_ref, hv);
22 }