iptables: disable unused xml support to save some space
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 6 May 2015 00:59:41 +0000 (00:59 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 6 May 2015 00:59:41 +0000 (00:59 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45617 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/network/utils/iptables/patches/050-optional-xml.patch [new file with mode: 0644]

diff --git a/package/network/utils/iptables/patches/050-optional-xml.patch b/package/network/utils/iptables/patches/050-optional-xml.patch
new file mode 100644 (file)
index 0000000..11311dd
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/iptables/xtables-multi.c
++++ b/iptables/xtables-multi.c
+@@ -22,8 +22,10 @@ static const struct subcommand multi_sub
+       {"iptables-restore",    iptables_restore_main},
+       {"restore4",            iptables_restore_main},
+ #endif
++#ifdef ENABLE_XML
+       {"iptables-xml",        iptables_xml_main},
+       {"xml",                 iptables_xml_main},
++#endif
+ #ifdef ENABLE_IPV6
+       {"ip6tables",           ip6tables_main},
+       {"main6",               ip6tables_main},