/*
* Copyright (C) 2002-2004 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* Added redirect stuff and a variety of bug fixes. (mcn@EnGarde.com)
*/
#include "ipf.h"
#pragma ident "%Z%%M% %I% %E% SMI"
#if !defined(lint)
static const char rcsid[] = "@(#)$Id: printactiveaddr.c,v 1.1 2008/02/12 16:11:49 darren_r Exp $";
#endif
void
printactiveaddress(v, fmt, addr, ifname)
int v;
char *fmt;
i6addr_t *addr;
char *ifname;
{
switch (v)
{
case 4 :
printf(fmt, inet_ntoa(addr->in4));
break;
#ifdef USE_INET6
case 6 :
printaddr(v, FRI_NORMAL, ifname, (u_32_t *)&addr->in6, NULL);
break;
#endif
default :
break;
}
}