diff mbox series

kernel: netfilter: move NAT targets to kmod-ebtables

Message ID 20200623171438.2602-1-freifunk@adrianschmutzler.de
State Deferred
Headers show
Series kernel: netfilter: move NAT targets to kmod-ebtables | expand

Commit Message

Adrian Schmutzler June 23, 2020, 5:14 p.m. UTC
From: Ali MJ Al-Nasrawy <alimjalnasrawy@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 <alimjalnasrawy@gmail.com>
[change commit title prefix]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
---
 include/netfilter.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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))