2010-04-18 00:44:16 +04:00
|
|
|
/* $NetBSD: printhostmap.c,v 1.1.1.4 2010/04/17 20:45:56 darrenr Exp $ */
|
2007-04-15 00:17:19 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2002-2005 by Darren Reed.
|
2010-04-18 00:44:16 +04:00
|
|
|
*
|
|
|
|
* See the IPFILTER.LICENCE file for details on licencing.
|
|
|
|
*
|
|
|
|
* Id: printhostmap.c,v 1.3.2.4 2009/12/27 06:58:07 darrenr Exp
|
|
|
|
*/
|
2004-03-28 12:55:20 +04:00
|
|
|
|
|
|
|
#include "ipf.h"
|
|
|
|
|
|
|
|
void printhostmap(hmp, hv)
|
|
|
|
hostmap_t *hmp;
|
|
|
|
u_int hv;
|
|
|
|
{
|
2006-04-04 20:08:18 +04:00
|
|
|
|
2004-03-28 12:55:20 +04:00
|
|
|
printf("%s,", inet_ntoa(hmp->hm_srcip));
|
|
|
|
printf("%s -> ", inet_ntoa(hmp->hm_dstip));
|
2007-04-15 00:17:19 +04:00
|
|
|
printf("%s ", inet_ntoa(hmp->hm_mapip));
|
2004-03-28 12:55:20 +04:00
|
|
|
printf("(use = %d hv = %u)\n", hmp->hm_ref, hv);
|
|
|
|
}
|