Skip to contentSkip to conversation

pool match and iptables-save

PATCH New Oskar Berggren 1 participant 1 message Nov 15, 2002 netfilter

lore
Share & tools
lore
#0 lore raw

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
diff -ur iptables-1.2.7a-orig/extensions/libipt_pool.c iptables-1.2.7a-fix/extensions/libipt_pool.c
@@ -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 |
\----------------------------------------------------------------------/