freebsd-dev/contrib/ipfilter/lib/printhostmap.c
Cy Schubert bfc88dcbf7 Update ipfilter 4.1.28 --> 5.1.2.
Approved by:		glebius (mentor)
BSD Licensed by:	Darren Reed <darrenr@reed.wattle.id.au> (author)
2013-09-06 23:11:19 +00:00

32 lines
626 B
C

/* $FreeBSD$ */
/*
* Copyright (C) 2012 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id$
*/
#include "ipf.h"
void
printhostmap(hmp, hv)
hostmap_t *hmp;
u_int hv;
{
printactiveaddress(hmp->hm_v, "%s", &hmp->hm_osrcip6, NULL);
putchar(',');
printactiveaddress(hmp->hm_v, "%s", &hmp->hm_odstip6, NULL);
PRINTF(" -> ");
printactiveaddress(hmp->hm_v, "%s", &hmp->hm_nsrcip6, NULL);
putchar(',');
printactiveaddress(hmp->hm_v, "%s", &hmp->hm_ndstip6, NULL);
putchar(' ');
PRINTF("(use = %d", hmp->hm_ref);
if (opts & OPT_VERBOSE)
PRINTF(" hv = %u", hv);
printf(")\n");
}