pool match and iptables-save
PATCH 1/1 pool match and iptables-save
This patch fixes a problem using the pool match and iptables-save together.
regards,
Oskar
extensions/libipt_pool.c Wed Oct 30 00:42:32 2002 renamed from extensions/libipt_pool.c Wed May 29 15:08:16 2002 +2 -2
@@ -113,11 +113,11 @@ (struct ipt_pool_info *)match->data; if (info->src != IP_POOL_NONE) - printf("%s--srcpool %s", + printf("%s--srcpool %s ", (info->flags & IPT_POOL_INV_SRC) ? "! " : "", ip_pool_get_name(buf, sizeof(buf), info->src, 0)); if (info->dst != IP_POOL_NONE) - printf("%s--dstpool %s", + printf("%s--dstpool %s ", (info->flags & IPT_POOL_INV_DST) ? "! " : "", ip_pool_get_name(buf, sizeof(buf), info->dst, 0));
}
Signature · 5 lines
/----------------------------------------------------------------------\ | Oskar Berggren [email protected] | | Network and Software Engineer SGS Datanätgrupp | | Gothenburg, Sweden | \----------------------------------------------------------------------/