mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
iptables: split physdev match out as a separate package
Split physdev match out of ipt-extra to allow installing ipt-extra without pulling in br-netfilter. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
parent
ff9a2ab830
commit
177fa14340
@ -94,12 +94,14 @@ $(eval $(call nf_add,IPT_CONNTRACK_LABEL,CONFIG_NETFILTER_XT_MATCH_CONNLABEL, $(
|
|||||||
|
|
||||||
$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_ADDRTYPE, $(if $(NF_KMOD),$(P_XT)xt_addrtype,$(P_XT)ipt_addrtype)))
|
$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_ADDRTYPE, $(if $(NF_KMOD),$(P_XT)xt_addrtype,$(P_XT)ipt_addrtype)))
|
||||||
$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_OWNER, $(P_XT)xt_owner))
|
$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_OWNER, $(P_XT)xt_owner))
|
||||||
$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_PHYSDEV, $(P_XT)xt_physdev))
|
|
||||||
$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_PKTTYPE, $(P_XT)xt_pkttype))
|
$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_PKTTYPE, $(P_XT)xt_pkttype))
|
||||||
$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_QUOTA, $(P_XT)xt_quota))
|
$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_QUOTA, $(P_XT)xt_quota))
|
||||||
|
|
||||||
#$(eval $(call nf_add,IPT_EXTRA,CONFIG_IP_NF_TARGET_ROUTE, $(P_V4)ipt_ROUTE))
|
#$(eval $(call nf_add,IPT_EXTRA,CONFIG_IP_NF_TARGET_ROUTE, $(P_V4)ipt_ROUTE))
|
||||||
|
|
||||||
|
# physdev
|
||||||
|
|
||||||
|
$(eval $(call nf_add,IPT_PHYSDEV,CONFIG_NETFILTER_XT_MATCH_PHYSDEV, $(P_XT)xt_physdev))
|
||||||
|
|
||||||
# filter
|
# filter
|
||||||
|
|
||||||
@ -371,6 +373,7 @@ IPT_BUILTIN += $(NF_CONNTRACK6-y)
|
|||||||
IPT_BUILTIN += $(IPT_CONNTRACK-y)
|
IPT_BUILTIN += $(IPT_CONNTRACK-y)
|
||||||
IPT_BUILTIN += $(IPT_CONNTRACK_EXTRA-y)
|
IPT_BUILTIN += $(IPT_CONNTRACK_EXTRA-y)
|
||||||
IPT_BUILTIN += $(IPT_EXTRA-y)
|
IPT_BUILTIN += $(IPT_EXTRA-y)
|
||||||
|
IPT_BUILTIN += $(IPT_PHYSDEV-y)
|
||||||
IPT_BUILTIN += $(IPT_FILTER-y)
|
IPT_BUILTIN += $(IPT_FILTER-y)
|
||||||
IPT_BUILTIN += $(IPT_FLOW-y) $(IPT_FLOW-m)
|
IPT_BUILTIN += $(IPT_FLOW-y) $(IPT_FLOW-m)
|
||||||
IPT_BUILTIN += $(IPT_IPOPT-y)
|
IPT_BUILTIN += $(IPT_IPOPT-y)
|
||||||
|
@ -686,7 +686,7 @@ define KernelPackage/ipt-extra
|
|||||||
KCONFIG:=$(KCONFIG_IPT_EXTRA)
|
KCONFIG:=$(KCONFIG_IPT_EXTRA)
|
||||||
FILES:=$(foreach mod,$(IPT_EXTRA-m),$(LINUX_DIR)/net/$(mod).ko)
|
FILES:=$(foreach mod,$(IPT_EXTRA-m),$(LINUX_DIR)/net/$(mod).ko)
|
||||||
AUTOLOAD:=$(call AutoProbe,$(notdir $(IPT_EXTRA-m)))
|
AUTOLOAD:=$(call AutoProbe,$(notdir $(IPT_EXTRA-m)))
|
||||||
$(call AddDepends/ipt,+kmod-br-netfilter)
|
$(call AddDepends/ipt)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define KernelPackage/ipt-extra/description
|
define KernelPackage/ipt-extra/description
|
||||||
@ -694,7 +694,6 @@ define KernelPackage/ipt-extra/description
|
|||||||
Includes:
|
Includes:
|
||||||
- addrtype
|
- addrtype
|
||||||
- owner
|
- owner
|
||||||
- physdev (if bridge support was enabled in kernel)
|
|
||||||
- pkttype
|
- pkttype
|
||||||
- quota
|
- quota
|
||||||
endef
|
endef
|
||||||
@ -702,6 +701,21 @@ endef
|
|||||||
$(eval $(call KernelPackage,ipt-extra))
|
$(eval $(call KernelPackage,ipt-extra))
|
||||||
|
|
||||||
|
|
||||||
|
define KernelPackage/ipt-physdev
|
||||||
|
TITLE:=physdev module
|
||||||
|
KCONFIG:=$(KCONFIG_IPT_PHYSDEV)
|
||||||
|
FILES:=$(foreach mod,$(IPT_PHYSDEV-m),$(LINUX_DIR)/net/$(mod).ko)
|
||||||
|
AUTOLOAD:=$(call AutoProbe,$(notdir $(IPT_PHYSDEV-m)))
|
||||||
|
$(call AddDepends/ipt,+kmod-br-netfilter)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define KernelPackage/ipt-physdev/description
|
||||||
|
The iptables physdev kernel module
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call KernelPackage,ipt-physdev))
|
||||||
|
|
||||||
|
|
||||||
define KernelPackage/ip6tables
|
define KernelPackage/ip6tables
|
||||||
SUBMENU:=$(NF_MENU)
|
SUBMENU:=$(NF_MENU)
|
||||||
TITLE:=IPv6 modules
|
TITLE:=IPv6 modules
|
||||||
|
@ -349,12 +349,20 @@ Other extra iptables extensions.
|
|||||||
- addrtype
|
- addrtype
|
||||||
- condition
|
- condition
|
||||||
- owner
|
- owner
|
||||||
- physdev (if ebtables is enabled)
|
|
||||||
- pkttype
|
- pkttype
|
||||||
- quota
|
- quota
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/iptables-mod-physdev
|
||||||
|
$(call Package/iptables/Module, +kmod-ipt-physdev)
|
||||||
|
TITLE:=physdev iptables extension
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/iptables-mod-physdev/description
|
||||||
|
The iptables physdev match.
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/iptables-mod-led
|
define Package/iptables-mod-led
|
||||||
$(call Package/iptables/Module, +kmod-ipt-led)
|
$(call Package/iptables/Module, +kmod-ipt-led)
|
||||||
TITLE:=LED trigger iptables extension
|
TITLE:=LED trigger iptables extension
|
||||||
@ -609,6 +617,7 @@ $(eval $(call BuildPackage,iptables))
|
|||||||
$(eval $(call BuildPlugin,iptables-mod-conntrack-extra,$(IPT_CONNTRACK_EXTRA-m)))
|
$(eval $(call BuildPlugin,iptables-mod-conntrack-extra,$(IPT_CONNTRACK_EXTRA-m)))
|
||||||
$(eval $(call BuildPlugin,iptables-mod-conntrack-label,$(IPT_CONNTRACK_LABEL-m)))
|
$(eval $(call BuildPlugin,iptables-mod-conntrack-label,$(IPT_CONNTRACK_LABEL-m)))
|
||||||
$(eval $(call BuildPlugin,iptables-mod-extra,$(IPT_EXTRA-m)))
|
$(eval $(call BuildPlugin,iptables-mod-extra,$(IPT_EXTRA-m)))
|
||||||
|
$(eval $(call BuildPlugin,iptables-mod-physdev,$(IPT_PHYSDEV-m)))
|
||||||
$(eval $(call BuildPlugin,iptables-mod-filter,$(IPT_FILTER-m)))
|
$(eval $(call BuildPlugin,iptables-mod-filter,$(IPT_FILTER-m)))
|
||||||
$(eval $(call BuildPlugin,iptables-mod-ipopt,$(IPT_IPOPT-m)))
|
$(eval $(call BuildPlugin,iptables-mod-ipopt,$(IPT_IPOPT-m)))
|
||||||
$(eval $(call BuildPlugin,iptables-mod-ipsec,$(IPT_IPSEC-m)))
|
$(eval $(call BuildPlugin,iptables-mod-ipsec,$(IPT_IPSEC-m)))
|
||||||
|
Loading…
Reference in New Issue
Block a user