1 2 /* 3 * Copyright (C) 2012 by Darren Reed. 4 * 5 * See the IPFILTER.LICENCE file for details on licencing. 6 * 7 * $Id$ 8 */ 9 10 #include "ipf.h" 11 12 void 13 printhostmap(hostmap_t *hmp, u_int hv) 14 { 15 16 printactiveaddress(hmp->hm_v, "%s", &hmp->hm_osrcip6, NULL); 17 putchar(','); 18 printactiveaddress(hmp->hm_v, "%s", &hmp->hm_odstip6, NULL); 19 PRINTF(" -> "); 20 printactiveaddress(hmp->hm_v, "%s", &hmp->hm_nsrcip6, NULL); 21 putchar(','); 22 printactiveaddress(hmp->hm_v, "%s", &hmp->hm_ndstip6, NULL); 23 putchar(' '); 24 PRINTF("(use = %d", hmp->hm_ref); 25 if (opts & OPT_VERBOSE) 26 PRINTF(" hv = %u", hv); 27 printf(")\n"); 28 } 29