X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=iptables.h;h=3237a4a8d5bcf81f4cee6289029ca7e45a4cefe7;hp=51c63d0f6210bf3e19d9aa3ee886754d3b66c82b;hb=73805dcc03e242fe5e25c9764ed33456acebdb95;hpb=7b63363c22a62e14d05f41c418b98fe4b45db9c3;ds=sidebyside diff --git a/iptables.h b/iptables.h index 51c63d0..3237a4a 100644 --- a/iptables.h +++ b/iptables.h @@ -63,11 +63,18 @@ __ipt_module(SNAT) \ __ipt_module(TCPMSS) +#ifdef DISABLE_IPV6 +#undef __ipt_module +#define __ipt_module(x) \ + extern void libxt_##x##_init(void) __attribute__((weak)); \ + extern void libipt_##x##_init(void) __attribute__((weak)); +#else #undef __ipt_module #define __ipt_module(x) \ extern void libxt_##x##_init(void) __attribute__((weak)); \ extern void libipt_##x##_init(void) __attribute__((weak)); \ extern void libip6t_##x##_init(void) __attribute__((weak)); +#endif FW3_IPT_MODULES