| * Copyright (C) 2002-2005 by Darren Reed. |
| * See the IPFILTER.LICENCE file for details on licencing. |
| #define PRINTF (void)printf |
| #define FPRINTF (void)fprintf |
| ip_pool_t *printpool(pp, copyfunc, name, opts) |
| ip_pool_node_t *ipnp, *ipnpn, ipn; |
| if ((*copyfunc)(pp, &ipp, sizeof(ipp))) |
| if ((name != NULL) && strncmp(name, ipp.ipo_name, FR_GROUPLEN)) |
| printpooldata(&ipp, opts); |
| if ((ipp.ipo_flags & IPOOL_DELETE) != 0) |
| if ((opts & OPT_DEBUG) == 0) |
| ipnp = (ip_pool_node_t *)malloc(sizeof(*ipnp)); |
| (*copyfunc)(ipnpn, ipnp, sizeof(ipn)); |
| ipnp->ipn_next = ipp.ipo_list; |
| if (ipp.ipo_list == NULL) { |
| for (ipnp = ipp.ipo_list; ipnp != NULL; ) { |
| ipnp = printpoolnode(ipnp, opts); |
| if ((opts & OPT_DEBUG) == 0) { |
| if ((opts & OPT_DEBUG) == 0) |