4 * Copyright (C) 2012 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
15 print_toif(family, tag, base, fdp)
24 PRINTF("%s %s%s", tag, base + fdp->fd_name,
25 (fdp->fd_ptr || (long)fdp->fd_ptr == -1) ? "" : "(!)");
27 if (family == AF_INET6) {
28 if (IP6_NOTZERO(&fdp->fd_ip6)) {
31 inet_ntop(AF_INET6, &fdp->fd_ip6, ipv6addr,
33 PRINTF(":%s", ipv6addr);
37 if (fdp->fd_ip.s_addr)
38 PRINTF(":%s", inet_ntoa(fdp->fd_ip));
43 PRINTF("%s dstlist/%s ", tag, base + fdp->fd_name);
47 PRINTF("%s <%d>", tag, fdp->fd_type);