mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
28 lines
599 B
C
28 lines
599 B
C
|
|
/*
|
|
* Copyright (C) 2012 by Darren Reed.
|
|
*
|
|
* See the IPFILTER.LICENCE file for details on licencing.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#include "ipf.h"
|
|
|
|
void
|
|
printhostmap(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");
|
|
}
|