[package] fix bluetooth and ide breakage after r18955 (#6422)
[openwrt.git] / package / kernel / modules / netfilter.mk
1
2 #
3 # Copyright (C) 2006-2008 OpenWrt.org
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 NF_MENU:=Netfilter Extensions
10 NF_KMOD:=1
11 include $(INCLUDE_DIR)/netfilter.mk
12
13 define KernelPackage/ipt-core
14 SUBMENU:=$(NF_MENU)
15 TITLE:=Netfilter core
16 KCONFIG:=$(KCONFIG_IPT_CORE)
17 FILES:=$(foreach mod,$(IPT_CORE-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
18 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_CORE-m)))
19 endef
20
21 define KernelPackage/ipt-core/description
22 Netfilter core kernel modules
23 Includes:
24 - limit
25 - LOG
26 - mac
27 - multiport
28 - TCPMSS
29 - REJECT
30 endef
31
32 $(eval $(call KernelPackage,ipt-core))
33
34
35 define KernelPackage/ipt-conntrack
36 SUBMENU:=$(NF_MENU)
37 TITLE:=Basic connection tracking modules
38 KCONFIG:=$(KCONFIG_IPT_CONNTRACK)
39 FILES:=$(foreach mod,$(IPT_CONNTRACK-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
40 AUTOLOAD:=$(call AutoLoad,41,$(notdir $(IPT_CONNTRACK-m)))
41 DEPENDS:= kmod-ipt-core
42 endef
43
44 define KernelPackage/ipt-conntrack/description
45 Netfilter (IPv4) kernel modules for connection tracking
46 Includes:
47 - state
48 endef
49
50 $(eval $(call KernelPackage,ipt-conntrack))
51
52
53 define KernelPackage/ipt-conntrack-extra
54 SUBMENU:=$(NF_MENU)
55 TITLE:=Extra connection tracking modules
56 KCONFIG:=$(KCONFIG_IPT_CONNTRACK_EXTRA)
57 FILES:=$(foreach mod,$(IPT_CONNTRACK_EXTRA-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
58 AUTOLOAD:=$(call AutoLoad,42,$(notdir $(IPT_CONNTRACK_EXTRA-m)))
59 DEPENDS:= kmod-ipt-core +kmod-ipt-conntrack
60 endef
61
62 define KernelPackage/ipt-conntrack-extra/description
63 Netfilter (IPv4) extra kernel modules for connection tracking
64 Includes:
65 - connbytes
66 - connmark/CONNMARK
67 - conntrack
68 - helper
69 - recent
70 - NOTRACK
71 endef
72
73 $(eval $(call KernelPackage,ipt-conntrack-extra))
74
75
76 define KernelPackage/ipt-filter
77 SUBMENU:=$(NF_MENU)
78 TITLE:=Modules for packet content inspection
79 KCONFIG:=$(KCONFIG_IPT_FILTER)
80 FILES:=$(foreach mod,$(IPT_FILTER-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
81 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_FILTER-m)))
82 DEPENDS:=kmod-ipt-core +LINUX_2_6:kmod-textsearch
83 endef
84
85 define KernelPackage/ipt-filter/description
86 Netfilter (IPv4) kernel modules for packet content inspection
87 Includes:
88 - ipt_layer7
89 - ipt_string
90 endef
91
92 $(eval $(call KernelPackage,ipt-filter))
93
94
95 define KernelPackage/ipt-ipopt
96 SUBMENU:=$(NF_MENU)
97 TITLE:=Modules for matching/changing IP packet options
98 KCONFIG:=$(KCONFIG_IPT_IPOPT)
99 FILES:=$(foreach mod,$(IPT_IPOPT-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
100 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_IPOPT-m)))
101 DEPENDS:= kmod-ipt-core
102 endef
103
104 define KernelPackage/ipt-ipopt/description
105 Netfilter (IPv4) modules for matching/changing IP packet options
106 Includes:
107 - ipt_CLASSIFY
108 - ipt_dscp/DSCP
109 - ipt_ecn/ECN
110 - ipt_length
111 - ipt_tos/TOS
112 - ipt_tcpmms
113 - ipt_ttl/TTL
114 - ipt_unclean
115 endef
116
117 $(eval $(call KernelPackage,ipt-ipopt))
118
119
120 define KernelPackage/ipt-ipsec
121 SUBMENU:=$(NF_MENU)
122 TITLE:=Modules for matching IPSec packets
123 KCONFIG:=$(KCONFIG_IPT_IPSEC)
124 FILES:=$(foreach mod,$(IPT_IPSEC-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
125 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_IPSEC-m)))
126 DEPENDS:= kmod-ipt-core
127 endef
128
129 define KernelPackage/ipt-ipsec/description
130 Netfilter (IPv4) modules for matching IPSec packets
131 Includes:
132 - ipt_ah
133 - ipt_esp
134 endef
135
136 $(eval $(call KernelPackage,ipt-ipsec))
137
138
139 define KernelPackage/ipt-nat
140 SUBMENU:=$(NF_MENU)
141 TITLE:=Basic NAT targets
142 KCONFIG:=$(KCONFIG_IPT_NAT)
143 FILES:=$(foreach mod,$(IPT_NAT-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
144 AUTOLOAD:=$(call AutoLoad,42,$(notdir $(IPT_NAT-m)))
145 DEPENDS:= kmod-ipt-core +kmod-ipt-conntrack
146 endef
147
148 define KernelPackage/ipt-nat/description
149 Netfilter (IPv4) kernel modules for basic NAT targets
150 Includes:
151 - MASQUERADE
152 endef
153
154 $(eval $(call KernelPackage,ipt-nat))
155
156
157 define KernelPackage/ipt-nat-extra
158 SUBMENU:=$(NF_MENU)
159 TITLE:=Extra NAT targets
160 KCONFIG:=$(KCONFIG_IPT_NAT_EXTRA)
161 FILES:=$(foreach mod,$(IPT_NAT_EXTRA-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
162 AUTOLOAD:=$(call AutoLoad,43,$(notdir $(IPT_NAT_EXTRA-m)))
163 DEPENDS:= kmod-ipt-core +kmod-ipt-nat
164 endef
165
166 define KernelPackage/ipt-nat-extra/description
167 Netfilter (IPv4) kernel modules for extra NAT targets
168 Includes:
169 - MIRROR
170 - NETMAP
171 - REDIRECT
172 endef
173
174 $(eval $(call KernelPackage,ipt-nat-extra))
175
176
177 define KernelPackage/ipt-nathelper
178 SUBMENU:=$(NF_MENU)
179 TITLE:=Basic Conntrack and NAT helpers
180 KCONFIG:=$(KCONFIG_IPT_NATHELPER)
181 FILES:=$(foreach mod,$(IPT_NATHELPER-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
182 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_NATHELPER-m)))
183 DEPENDS:= kmod-ipt-core +kmod-ipt-nat
184 endef
185
186 define KernelPackage/ipt-nathelper/description
187 Default Netfilter (IPv4) Conntrack and NAT helpers
188 Includes:
189 - conntrack_ftp
190 - nat_ftp
191 - conntrack_irc
192 - nat_irc
193 - conntrack_tftp
194 - nat_tftp
195 endef
196
197 $(eval $(call KernelPackage,ipt-nathelper))
198
199
200 define KernelPackage/ipt-nathelper-extra
201 SUBMENU:=$(NF_MENU)
202 TITLE:=Extra Conntrack and NAT helpers
203 KCONFIG:=$(KCONFIG_IPT_NATHELPER_EXTRA)
204 FILES:=$(foreach mod,$(IPT_NATHELPER_EXTRA-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
205 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_NATHELPER_EXTRA-m)))
206 DEPENDS:= kmod-ipt-core +kmod-ipt-nat +LINUX_2_6:kmod-textsearch
207 endef
208
209 define KernelPackage/ipt-nathelper-extra/description
210 Extra Netfilter (IPv4) Conntrack and NAT helpers
211 Includes:
212 - ip_conntrack_amanda
213 - ip_conntrack_proto_gre
214 - ip_nat_proto_gre
215 - ip_conntrack_pptp
216 - ip_nat_pptp
217 - ip_conntrack_sip
218 - ip_nat_sip
219 - ip_nat_snmp_basic
220 endef
221
222 $(eval $(call KernelPackage,ipt-nathelper-extra))
223
224
225 define KernelPackage/ipt-imq
226 SUBMENU:=$(NF_MENU)
227 TITLE:=Intermediate Queueing support
228 KCONFIG:= \
229 CONFIG_IMQ \
230 CONFIG_IMQ_BEHAVIOR_BA=y \
231 CONFIG_IMQ_NUM_DEVS=2 \
232 CONFIG_NETFILTER_XT_TARGET_IMQ
233 FILES:= \
234 $(LINUX_DIR)/drivers/net/imq.$(LINUX_KMOD_SUFFIX) \
235 $(foreach mod,$(IPT_IMQ-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
236 AUTOLOAD:=$(call AutoLoad,45,$(notdir \
237 imq \
238 $(IPT_IMQ-m) \
239 ))
240 DEPENDS:= kmod-ipt-core
241 endef
242
243 define KernelPackage/ipt-imq/description
244 Kernel support for Intermediate Queueing devices
245 endef
246
247 $(eval $(call KernelPackage,ipt-imq))
248
249
250 define KernelPackage/ipt-queue
251 SUBMENU:=$(NF_MENU)
252 TITLE:=Module for user-space packet queueing
253 KCONFIG:=$(KCONFIG_IPT_QUEUE)
254 FILES:=$(foreach mod,$(IPT_QUEUE-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
255 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_QUEUE-m)))
256 DEPENDS:= kmod-ipt-core
257 endef
258
259 define KernelPackage/ipt-queue/description
260 Netfilter (IPv4) module for user-space packet queueing
261 Includes:
262 - QUEUE
263 endef
264
265 $(eval $(call KernelPackage,ipt-queue))
266
267
268 define KernelPackage/ipt-ulog
269 SUBMENU:=$(NF_MENU)
270 TITLE:=Module for user-space packet logging
271 KCONFIG:=$(KCONFIG_IPT_ULOG)
272 FILES:=$(foreach mod,$(IPT_ULOG-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
273 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_ULOG-m)))
274 DEPENDS:= kmod-ipt-core
275 endef
276
277 define KernelPackage/ipt-ulog/description
278 Netfilter (IPv4) module for user-space packet logging
279 Includes:
280 - ipt_ULOG
281 endef
282
283 $(eval $(call KernelPackage,ipt-ulog))
284
285
286 define KernelPackage/ipt-iprange
287 SUBMENU:=$(NF_MENU)
288 TITLE:=Module for matching ip ranges
289 KCONFIG:=$(KCONFIG_IPT_IPRANGE)
290 FILES:=$(foreach mod,$(IPT_IPRANGE-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
291 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_IPRANGE-m)))
292 DEPENDS:= kmod-ipt-core
293 endef
294
295 define KernelPackage/ipt-iprange/description
296 Netfilter (IPv4) module for matching ip ranges
297 Includes:
298 - ipt_IPRANGE
299 endef
300
301 $(eval $(call KernelPackage,ipt-iprange))
302
303
304 define KernelPackage/ipt-extra
305 SUBMENU:=$(NF_MENU)
306 TITLE:=Extra modules
307 KCONFIG:=$(KCONFIG_IPT_EXTRA)
308 FILES:=$(foreach mod,$(IPT_EXTRA-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
309 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_EXTRA-m)))
310 DEPENDS:= kmod-ipt-core
311 endef
312
313 define KernelPackage/ipt-extra/description
314 Other Netfilter (IPv4) kernel modules
315 Includes:
316 - ipt_owner
317 - ipt_physdev
318 - ipt_pkttype
319 - ipt_recent
320 - iptable_raw
321 - xt_NOTRACK
322 endef
323
324 $(eval $(call KernelPackage,ipt-extra))
325
326
327 define KernelPackage/ip6tables
328 SUBMENU:=$(NF_MENU)
329 TITLE:=IPv6 modules
330 DEPENDS:=+kmod-ipv6
331 KCONFIG:=$(KCONFIG_IPT_IPV6)
332 FILES:=$(foreach mod,$(IPT_IPV6-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
333 AUTOLOAD:=$(call AutoLoad,49,$(notdir $(IPT_IPV6-m)))
334 endef
335
336 define KernelPackage/ip6tables/description
337 Netfilter IPv6 firewalling support
338 endef
339
340 $(eval $(call KernelPackage,ip6tables))
341
342
343 define KernelPackage/arptables
344 SUBMENU:=$(NF_MENU)
345 TITLE:=ARP firewalling modules
346 FILES:=$(LINUX_DIR)/net/ipv4/netfilter/arp*.$(LINUX_KMOD_SUFFIX)
347 KCONFIG:=CONFIG_IP_NF_ARPTABLES \
348 CONFIG_IP_NF_ARPFILTER \
349 CONFIG_IP_NF_ARP_MANGLE
350 AUTOLOAD:=$(call AutoLoad,49,$(notdir $(patsubst %.$(LINUX_KMOD_SUFFIX),%,$(wildcard $(LINUX_DIR)/net/ipv4/netfilter/arp*.$(LINUX_KMOD_SUFFIX)))))
351 endef
352
353 define KernelPackage/arptables/description
354 Kernel modules for ARP firewalling
355 endef
356
357 $(eval $(call KernelPackage,arptables))
358
359 define KernelPackage/ebtables
360 SUBMENU:=$(NF_MENU)
361 TITLE:=Bridge firewalling modules
362 DEPENDS:=@LINUX_2_6
363 FILES:=$(foreach mod,$(EBTABLES-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
364 KCONFIG:=CONFIG_BRIDGE_NETFILTER=y \
365 $(KCONFIG_EBTABLES)
366 AUTOLOAD:=$(call AutoLoad,49,$(notdir $(EBTABLES-m)))
367 endef
368
369 define KernelPackage/ebtables/description
370 ebtables is a general, extensible frame/packet identification
371 framework. It provides you to do Ethernet
372 filtering/NAT/brouting on the Ethernet bridge.
373 endef
374
375 $(eval $(call KernelPackage,ebtables))
376
377 define KernelPackage/ebtables-ipv4
378 SUBMENU:=$(NF_MENU)
379 TITLE:=ebtables: IPv4 support
380 DEPENDS:= kmod-ebtables
381 FILES:=$(foreach mod,$(EBTABLES_IP4-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
382 KCONFIG:=$(KCONFIG_EBTABLES_IP4)
383 AUTOLOAD:=$(call AutoLoad,49,$(notdir $(EBTABLES_IP4-m)))
384 endef
385
386 define KernelPackage/ebtables-ipv4/description
387 This option adds the IPv4 support to ebtables, which allows basic
388 IPv4 header field filtering, ARP filtering as well as SNAT, DNAT targets.
389 endef
390
391 $(eval $(call KernelPackage,ebtables-ipv4))
392
393 define KernelPackage/ebtables-ipv6
394 SUBMENU:=$(NF_MENU)
395 TITLE:=ebtables: IPv6 support
396 DEPENDS:= kmod-ebtables
397 FILES:=$(foreach mod,$(EBTABLES_IP6-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
398 KCONFIG:=$(KCONFIG_EBTABLES_IP6)
399 AUTOLOAD:=$(call AutoLoad,49,$(notdir $(EBTABLES_IP6-m)))
400 endef
401
402 define KernelPackage/ebtables-ipv6/description
403 This option adds the IPv6 support to ebtables, which allows basic
404 IPv6 header field filtering and target support.
405 endef
406
407 $(eval $(call KernelPackage,ebtables-ipv6))
408
409 define KernelPackage/ebtables-watchers
410 SUBMENU:=$(NF_MENU)
411 TITLE:=ebtables: watchers support
412 DEPENDS:= kmod-ebtables
413 FILES:=$(foreach mod,$(EBTABLES_WATCHERS-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
414 KCONFIG:=$(KCONFIG_EBTABLES_WATCHERS)
415 AUTOLOAD:=$(call AutoLoad,49,$(notdir $(EBTABLES_WATCHERS-m)))
416 endef
417
418 define KernelPackage/ebtables-watchers/description
419 This option adds the log watchers, that you can use in any rule
420 in any ebtables table.
421 endef
422
423 $(eval $(call KernelPackage,ebtables-watchers))
424
425 define KernelPackage/nfnetlink
426 SUBMENU:=$(NF_MENU)
427 TITLE:=Netlink-based userspace interface
428 DEPENDS:=@LINUX_2_6 +kmod-ipt-core
429 FILES:=$(LINUX_DIR)/net/netfilter/nfnetlink.$(LINUX_KMOD_SUFFIX)
430 KCONFIG:=CONFIG_NETFILTER_NETLINK
431 AUTOLOAD:=$(call AutoLoad,48,nfnetlink)
432 endef
433
434 define KernelPackage/nfnetlink/description
435 Kernel modules support for a netlink-based userspace interface
436 endef
437
438 $(eval $(call KernelPackage,nfnetlink))
439
440
441 define KernelPackage/nfnetlink-log
442 SUBMENU:=$(NF_MENU)
443 TITLE:=Netfilter LOG over NFNETLINK interface
444 DEPENDS:=@LINUX_2_6 +kmod-nfnetlink
445 FILES:=$(LINUX_DIR)/net/netfilter/nfnetlink_log.$(LINUX_KMOD_SUFFIX)
446 KCONFIG:=CONFIG_NETFILTER_NETLINK_LOG
447 AUTOLOAD:=$(call AutoLoad,48,nfnetlink_log)
448 endef
449
450 define KernelPackage/nfnetlink-log/description
451 Kernel modules support for logging packets via NFNETLINK
452 endef
453
454 $(eval $(call KernelPackage,nfnetlink-log))
455
456
457 define KernelPackage/nfnetlink-queue
458 SUBMENU:=$(NF_MENU)
459 TITLE:=Netfilter QUEUE over NFNETLINK interface
460 DEPENDS:=@LINUX_2_6 +kmod-nfnetlink
461 FILES:=$(LINUX_DIR)/net/netfilter/nfnetlink_queue.$(LINUX_KMOD_SUFFIX)
462 KCONFIG:=CONFIG_NETFILTER_NETLINK_QUEUE
463 AUTOLOAD:=$(call AutoLoad,48,nfnetlink_queue)
464 endef
465
466 define KernelPackage/nfnetlink-queue/description
467 Kernel modules support for queueing packets via NFNETLINK
468 endef
469
470 $(eval $(call KernelPackage,nfnetlink-queue))
471
472
473 define KernelPackage/nf-conntrack-netlink
474 SUBMENU:=$(NF_MENU)
475 TITLE:=Connection tracking netlink interface
476 DEPENDS:=@LINUX_2_6 +kmod-nfnetlink +kmod-ipt-conntrack
477 FILES:=$(LINUX_DIR)/net/netfilter/nf_conntrack_netlink.$(LINUX_KMOD_SUFFIX)
478 KCONFIG:=CONFIG_NF_CT_NETLINK
479 AUTOLOAD:=$(call AutoLoad,49,nf_conntrack_netlink)
480 endef
481
482 define KernelPackage/nf-conntrack-netlink/description
483 Kernel modules support for a netlink-based connection tracking
484 userspace interface
485 endef
486
487 $(eval $(call KernelPackage,nf-conntrack-netlink))
This page took 0.075235 seconds and 5 git commands to generate.