1 /*
2 * Copyright (C) 2012 by Darren Reed.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 *
6 * Added redirect stuff and a variety of bug fixes. (mcn@EnGarde.com)
7 */
8
9 #include "ipf.h"
10
11
12
13
14 void
printactiveaddress(int v,char * fmt,i6addr_t * addr,char * ifname)15 printactiveaddress(int v, char *fmt, i6addr_t *addr, char *ifname)
16 {
17 switch (v)
18 {
19 case 4 :
20 PRINTF(fmt, inet_ntoa(addr->in4));
21 break;
22 #ifdef USE_INET6
23 case 6 :
24 printaddr(AF_INET6, FRI_NORMAL, ifname, 0,
25 (u_32_t *)&addr->in6, NULL);
26 break;
27 #endif
28 default :
29 break;
30 }
31 }
32