From: Ali MJ Al-Nasrawy <alimjalnasr...@gmail.com>

Move SNAT and DNAT support from kmod-ebtables-ip4 to kmod-ebtables
because these targets operate on MAC addresses not IPv4 and
kmod-ebtables already supports NAT table and the related REDIRECT
target.

Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasr...@gmail.com>
[change commit title prefix]
Signed-off-by: Adrian Schmutzler <freif...@adrianschmutzler.de>
---
 include/netfilter.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/netfilter.mk b/include/netfilter.mk
index c95bcb504d..568e6718b5 100644
--- a/include/netfilter.mk
+++ b/include/netfilter.mk
@@ -323,9 +323,9 @@ $(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_VLAN, 
$(P_EBT)ebt_vlan))
 # targets
 $(eval $(call nf_add,EBTABLES_IP4,CONFIG_BRIDGE_EBT_ARPREPLY, 
$(P_EBT)ebt_arpreply))
 $(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_MARK_T, $(P_EBT)ebt_mark))
-$(eval $(call nf_add,EBTABLES_IP4,CONFIG_BRIDGE_EBT_DNAT, $(P_EBT)ebt_dnat))
+$(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_DNAT, $(P_EBT)ebt_dnat))
 $(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_REDIRECT, 
$(P_EBT)ebt_redirect))
-$(eval $(call nf_add,EBTABLES_IP4,CONFIG_BRIDGE_EBT_SNAT, $(P_EBT)ebt_snat))
+$(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_SNAT, $(P_EBT)ebt_snat))
 
 # watchers
 $(eval $(call nf_add,EBTABLES_WATCHERS,CONFIG_BRIDGE_EBT_LOG, $(P_EBT)ebt_log))
-- 
2.20.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.infradead.org/mailman/listinfo/openwrt-devel

Reply via email to