4 * Copyright (C) 2000-2002 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
8 * $Id: print_toif.c,v 1.8.4.1 2006/06/16 17:21:09 darrenr Exp $
14 void print_toif(tag, fdp)
18 printf("%s %s%s", tag, fdp->fd_ifname,
19 (fdp->fd_ifp || (long)fdp->fd_ifp == -1) ? "" : "(!)");
21 if (use_inet6 && IP6_NOTZERO(&fdp->fd_ip6.in6)) {
24 inet_ntop(AF_INET6, &fdp->fd_ip6, ipv6addr,
26 printf(":%s", ipv6addr);
29 if (fdp->fd_ip.s_addr)
30 printf(":%s", inet_ntoa(fdp->fd_ip));