split modules.mk
[openwrt/openwrt.git] / package / kernel / modules / netfilter.mk
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 NFMENU:=Netfilter Extensions
10
11 define KernelPackage/ipt-conntrack
12 TITLE:=Modules for connection tracking
13 DESCRIPTION:=\
14 Netfilter (IPv4) kernel modules for connection tracking\\\
15 \\\
16 Includes: \\\
17 - ipt_conntrack \\\
18 - ipt_helper \\\
19 - ipt_connmark/CONNMARK
20 FILES:=$(foreach mod,$(IPT_CONNTRACK-m),$(MODULES_DIR)/kernel/net/$(mod).$(LINUX_KMOD_SUFFIX))
21 SUBMENU:=$(NFMENU)
22 endef
23 $(eval $(call KernelPackage,ipt-conntrack))
24
25 define KernelPackage/ipt-filter
26 TITLE:=Modules for packet content inspection
27 DESCRIPTION:=\
28 Netfilter (IPv4) kernel modules for packet content inspection \\\
29 \\\
30 Includes: \\\
31 - ipt_ipp2p \\\
32 - ipt_layer7
33 FILES:=$(foreach mod,$(IPT_FILTER-m),$(MODULES_DIR)/kernel/net/$(mod).$(LINUX_KMOD_SUFFIX))
34 SUBMENU:=$(NFMENU)
35 endef
36 $(eval $(call KernelPackage,ipt-filter))
37
38 define KernelPackage/ipt-ipopt
39 TITLE:=Modules for matching/changing IP packet options
40 DESCRIPTION:=\
41 Netfilter (IPv4) modules for matching/changing IP packet options \\\
42 \\\
43 Includes: \\\
44 - ipt_dscp/DSCP \\\
45 - ipt_ecn/ECN \\\
46 - ipt_length \\\
47 - ipt_mac \\\
48 - ipt_tos/TOS \\\
49 - ipt_tcpmms \\\
50 - ipt_ttl/TTL \\\
51 - ipt_unclean
52 FILES:=$(foreach mod,$(IPT_IPOPT-m),$(MODULES_DIR)/kernel/net/$(mod).$(LINUX_KMOD_SUFFIX))
53 SUBMENU:=$(NFMENU)
54 endef
55 $(eval $(call KernelPackage,ipt-ipopt))
56
57 define KernelPackage/ipt-ipsec
58 TITLE:=Modules for matching IPSec packets
59 DESCRIPTION:=\
60 Netfilter (IPv4) modules for matching IPSec packets \\\
61 \\\
62 Includes: \\\
63 - ipt_ah \\\
64 - ipt_esp
65 FILES:=$(foreach mod,$(IPT_IPSEC-m),$(MODULES_DIR)/kernel/net/$(mod).$(LINUX_KMOD_SUFFIX))
66 SUBMENU:=$(NFMENU)
67 endef
68 $(eval $(call KernelPackage,ipt-ipsec))
69
70 define KernelPackage/ipt-nat
71 TITLE:=Modules for extra NAT targets
72 DESCRIPTION:=\
73 Netfilter (IPv4) modules for extra NAT targets \\\
74 \\\
75 Includes: \\\
76 - ipt_REDIRECT \\\
77 - ipt_NETMAP
78 FILES:=$(foreach mod,$(IPT_NAT-m),$(MODULES_DIR)/kernel/net/$(mod).$(LINUX_KMOD_SUFFIX))
79 SUBMENU:=$(NFMENU)
80 endef
81 $(eval $(call KernelPackage,ipt-nat))
82
83 define KernelPackage/ipt-nathelper
84 TITLE:=Extra Conntrack and NAT helpers
85 DESCRIPTION:=\
86 Extra Netfilter (IPv4) Conntrack and NAT helpers \\\
87 \\\
88 Includes: \\\
89 - ip_conntrack_amanda \\\
90 - ip_conntrack_proto_gre \\\
91 - ip_nat_proto_gre \\\
92 - ip_conntrack_pptp \\\
93 - ip_nat_pptp \\\
94 - ip_conntrack_sip \\\
95 - ip_nat_sip \\\
96 - ip_nat_snmp_basic \\\
97 - ip_conntrack_tftp
98 FILES:=$(foreach mod,$(IPT_NAT_EXTRA-m),$(MODULES_DIR)/kernel/net/$(mod).$(LINUX_KMOD_SUFFIX))
99 SUBMENU:=$(NFMENU)
100 endef
101 $(eval $(call KernelPackage,ipt-nathelper))
102
103 define KernelPackage/ipt-imq
104 TITLE:=Intermediate Queueing support
105 DESCRIPTION:=\
106 Kernel support for Intermediate Queueing devices
107 KCONFIG:=$(CONFIG_IP_NF_TARGET_IMQ)
108 FILES:=$(MODULES_DIR)/kernel/net/ipv4/netfilter/*IMQ*.$(LINUX_KMOD_SUFFIX) $(MODULES_DIR)/kernel/drivers/net/imq.$(LINUX_KMOD_SUFFIX)
109 SUBMENU:=$(NFMENU)
110 endef
111 $(eval $(call KernelPackage,ipt-imq))
112
113
114 define KernelPackage/ipt-queue
115 TITLE:=Module for user-space packet queueing
116 DESCRIPTION:=\
117 Netfilter (IPv4) module for user-space packet queueing \\\
118 \\\
119 Includes: \\\
120 - ipt_QUEUE
121 FILES:=$(foreach mod,$(IPT_QUEUE-m),$(MODULES_DIR)/kernel/net/$(mod).$(LINUX_KMOD_SUFFIX))
122 SUBMENU:=$(NFMENU)
123 endef
124 $(eval $(call KernelPackage,ipt-queue))
125
126 define KernelPackage/ipt-ulog
127 TITLE:=Module for user-space packet logging
128 DESCRIPTION:=\
129 Netfilter (IPv4) module for user-space packet logging \\\
130 \\\
131 Includes: \\\
132 - ipt_ULOG
133 FILES:=$(foreach mod,$(IPT_ULOG-m),$(MODULES_DIR)/kernel/net/$(mod).$(LINUX_KMOD_SUFFIX))
134 SUBMENU:=$(NFMENU)
135 endef
136 $(eval $(call KernelPackage,ipt-ulog))
137
138 define KernelPackage/ipt-extra
139 TITLE:=Extra modules
140 DESCRIPTION:=\
141 Other Netfilter (IPv4) kernel modules\\\
142 Includes: \\\
143 - ipt_limit \\\
144 - ipt_owner \\\
145 - ipt_physdev \\\
146 - ipt_pkttype \\\
147 - ipt_recent
148 FILES:=$(foreach mod,$(IPT_EXTRA-m),$(MODULES_DIR)/kernel/net/$(mod).$(LINUX_KMOD_SUFFIX))
149 SUBMENU:=$(NFMENU)
150 endef
151 $(eval $(call KernelPackage,ipt-extra))
152
153 define KernelPackage/ip6tables
154 TITLE:=IPv6 modules
155 DESCRIPTION:=\
156 Netfilter IPv6 firewalling support
157 KCONFIG:=$(CONFIG_IP6_NF_IPTABLES)
158 FILES:=$(MODULES_DIR)/kernel/net/ipv6/netfilter/ip*.$(LINUX_KMOD_SUFFIX)
159 SUBMENU:=$(NFMENU)
160 endef
161 $(eval $(call KernelPackage,ip6tables))
162
163
164 define KernelPackage/arptables
165 TITLE:=ARP firewalling modules
166 DESCRIPTION:=\
167 Kernel modules for ARP firewalling
168 FILES:=$(MODULES_DIR)/kernel/net/ipv4/netfilter/arp*.$(LINUX_KMOD_SUFFIX)
169 KCONFIG:=$(CONFIG_IP_NF_ARPTABLES)
170 SUBMENU:=$(NFMENU)
171 endef
172 $(eval $(call KernelPackage,arptables))
173
174
175 define KernelPackage/ebtables
176 TITLE:=Bridge firewalling modules
177 DESCRIPTION:=\
178 Kernel modules for Ethernet Bridge firewalling
179 FILES:=$(MODULES_DIR)/kernel/net/bridge/netfilter/*.$(LINUX_KMOD_SUFFIX)
180 KCONFIG:=$(CONFIG_BRIDGE_NF_EBTABLES)
181 SUBMENU:=$(NFMENU)
182 endef
183 $(eval $(call KernelPackage,ebtables))
184
185