[packages] kernel: kirkwood/orion I2C module support
[openwrt.git] / package / kernel / modules / netfilter.mk
1
2 #
3 # Copyright (C) 2006-2010 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:= \
17 CONFIG_NETFILTER=y \
18 CONFIG_NETFILTER_ADVANCED=y \
19 $(KCONFIG_IPT_CORE)
20 FILES:=$(foreach mod,$(IPT_CORE-m),$(LINUX_DIR)/net/$(mod).ko)
21 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_CORE-m)))
22 endef
23
24 define KernelPackage/ipt-core/description
25 Netfilter core kernel modules
26 Includes:
27 - comment (2.6)
28 - limit
29 - LOG
30 - mac
31 - multiport
32 - REJECT
33 - TCPMSS
34 endef
35
36 $(eval $(call KernelPackage,ipt-core))
37
38
39 define AddDepends/ipt
40 SUBMENU:=$(NF_MENU)
41 DEPENDS+= kmod-ipt-core $(1)
42 endef
43
44
45 define KernelPackage/ipt-conntrack
46 TITLE:=Basic connection tracking modules
47 KCONFIG:=$(KCONFIG_IPT_CONNTRACK)
48 FILES:=$(foreach mod,$(IPT_CONNTRACK-m),$(LINUX_DIR)/net/$(mod).ko)
49 AUTOLOAD:=$(call AutoLoad,41,$(notdir $(IPT_CONNTRACK-m)))
50 $(call AddDepends/ipt)
51 endef
52
53 define KernelPackage/ipt-conntrack/description
54 Netfilter (IPv4) kernel modules for connection tracking
55 Includes:
56 - conntrack
57 - defrag (2.6)
58 - iptables_raw
59 - NOTRACK
60 - state
61 endef
62
63 $(eval $(call KernelPackage,ipt-conntrack))
64
65
66 define KernelPackage/ipt-conntrack-extra
67 TITLE:=Extra connection tracking modules
68 KCONFIG:=$(KCONFIG_IPT_CONNTRACK_EXTRA)
69 FILES:=$(foreach mod,$(IPT_CONNTRACK_EXTRA-m),$(LINUX_DIR)/net/$(mod).ko)
70 AUTOLOAD:=$(call AutoLoad,42,$(notdir $(IPT_CONNTRACK_EXTRA-m)))
71 $(call AddDepends/ipt,+kmod-ipt-conntrack)
72 endef
73
74 define KernelPackage/ipt-conntrack-extra/description
75 Netfilter (IPv4) extra kernel modules for connection tracking
76 Includes:
77 - connbytes
78 - connmark/CONNMARK
79 - conntrack
80 - helper
81 - recent
82 endef
83
84 $(eval $(call KernelPackage,ipt-conntrack-extra))
85
86
87 define KernelPackage/ipt-filter
88 TITLE:=Modules for packet content inspection
89 KCONFIG:=$(KCONFIG_IPT_FILTER)
90 FILES:=$(foreach mod,$(IPT_FILTER-m),$(LINUX_DIR)/net/$(mod).ko)
91 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_FILTER-m)))
92 $(call AddDepends/ipt,+kmod-textsearch)
93 endef
94
95 define KernelPackage/ipt-filter/description
96 Netfilter (IPv4) kernel modules for packet content inspection
97 Includes:
98 - layer7
99 - string
100 endef
101
102 $(eval $(call KernelPackage,ipt-filter))
103
104
105 define KernelPackage/ipt-ipopt
106 TITLE:=Modules for matching/changing IP packet options
107 KCONFIG:=$(KCONFIG_IPT_IPOPT)
108 FILES:=$(foreach mod,$(IPT_IPOPT-m),$(LINUX_DIR)/net/$(mod).ko)
109 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_IPOPT-m)))
110 $(call AddDepends/ipt)
111 endef
112
113 define KernelPackage/ipt-ipopt/description
114 Netfilter (IPv4) modules for matching/changing IP packet options
115 Includes:
116 - CLASSIFY
117 - dscp/DSCP
118 - ecn/ECN
119 - hl/HL (2.6.30 and later)
120 - length
121 - mark/MARK
122 - statistic (2.6)
123 - tcpmss
124 - time
125 - tos/TOS (prior to 2.6.25)
126 - ttl/TTL (prior to 2.6.30)
127 - unclean
128 endef
129
130 $(eval $(call KernelPackage,ipt-ipopt))
131
132
133 define KernelPackage/ipt-ipsec
134 TITLE:=Modules for matching IPSec packets
135 KCONFIG:=$(KCONFIG_IPT_IPSEC)
136 FILES:=$(foreach mod,$(IPT_IPSEC-m),$(LINUX_DIR)/net/$(mod).ko)
137 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_IPSEC-m)))
138 $(call AddDepends/ipt)
139 endef
140
141 define KernelPackage/ipt-ipsec/description
142 Netfilter (IPv4) modules for matching IPSec packets
143 Includes:
144 - ah
145 - esp
146 - policy (2.6)
147 endef
148
149 $(eval $(call KernelPackage,ipt-ipsec))
150
151
152 define KernelPackage/ipt-nat
153 TITLE:=Basic NAT targets
154 KCONFIG:=$(KCONFIG_IPT_NAT)
155 FILES:=$(foreach mod,$(IPT_NAT-m),$(LINUX_DIR)/net/$(mod).ko)
156 AUTOLOAD:=$(call AutoLoad,42,$(notdir $(IPT_NAT-m)))
157 $(call AddDepends/ipt,+kmod-ipt-conntrack)
158 endef
159
160 define KernelPackage/ipt-nat/description
161 Netfilter (IPv4) kernel modules for basic NAT targets
162 Includes:
163 - MASQUERADE
164 endef
165
166 $(eval $(call KernelPackage,ipt-nat))
167
168
169 define KernelPackage/ipt-nat-extra
170 TITLE:=Extra NAT targets
171 KCONFIG:=$(KCONFIG_IPT_NAT_EXTRA)
172 FILES:=$(foreach mod,$(IPT_NAT_EXTRA-m),$(LINUX_DIR)/net/$(mod).ko)
173 AUTOLOAD:=$(call AutoLoad,43,$(notdir $(IPT_NAT_EXTRA-m)))
174 $(call AddDepends/ipt,+kmod-ipt-nat)
175 endef
176
177 define KernelPackage/ipt-nat-extra/description
178 Netfilter (IPv4) kernel modules for extra NAT targets
179 Includes:
180 - MIRROR (2.4)
181 - NETMAP
182 - REDIRECT
183 endef
184
185 $(eval $(call KernelPackage,ipt-nat-extra))
186
187
188 define KernelPackage/ipt-nathelper
189 TITLE:=Basic Conntrack and NAT helpers
190 KCONFIG:=$(KCONFIG_IPT_NATHELPER)
191 FILES:=$(foreach mod,$(IPT_NATHELPER-m),$(LINUX_DIR)/net/$(mod).ko)
192 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_NATHELPER-m)))
193 $(call AddDepends/ipt,+kmod-ipt-nat)
194 endef
195
196 define KernelPackage/ipt-nathelper/description
197 Default Netfilter (IPv4) Conntrack and NAT helpers
198 Includes:
199 - ftp
200 - irc
201 - tftp
202 endef
203
204 $(eval $(call KernelPackage,ipt-nathelper))
205
206
207 define KernelPackage/ipt-nathelper-extra
208 TITLE:=Extra Conntrack and NAT helpers
209 KCONFIG:=$(KCONFIG_IPT_NATHELPER_EXTRA)
210 FILES:=$(foreach mod,$(IPT_NATHELPER_EXTRA-m),$(LINUX_DIR)/net/$(mod).ko)
211 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_NATHELPER_EXTRA-m)))
212 $(call AddDepends/ipt,+kmod-ipt-nat +kmod-textsearch)
213 endef
214
215 define KernelPackage/ipt-nathelper-extra/description
216 Extra Netfilter (IPv4) Conntrack and NAT helpers
217 Includes:
218 - amanda
219 - h323
220 - mms
221 - pptp (2.6)
222 - proto_gre (2.6)
223 - rtsp
224 - sip (2.6)
225 - snmp_basic
226 endef
227
228 $(eval $(call KernelPackage,ipt-nathelper-extra))
229
230
231 define KernelPackage/ipt-imq
232 TITLE:=Intermediate Queueing support
233 KCONFIG:= \
234 CONFIG_IMQ \
235 CONFIG_IMQ_BEHAVIOR_BA=y \
236 CONFIG_IMQ_NUM_DEVS=2 \
237 CONFIG_NETFILTER_XT_TARGET_IMQ
238 FILES:= \
239 $(LINUX_DIR)/drivers/net/imq.ko \
240 $(foreach mod,$(IPT_IMQ-m),$(LINUX_DIR)/net/$(mod).ko)
241 AUTOLOAD:=$(call AutoLoad,46,$(notdir \
242 imq \
243 $(IPT_IMQ-m) \
244 ))
245 $(call AddDepends/ipt)
246 endef
247
248 define KernelPackage/ipt-imq/description
249 Kernel support for Intermediate Queueing devices
250 endef
251
252 $(eval $(call KernelPackage,ipt-imq))
253
254
255 define KernelPackage/ipt-queue
256 TITLE:=Module for user-space packet queueing
257 KCONFIG:=$(KCONFIG_IPT_QUEUE)
258 FILES:=$(foreach mod,$(IPT_QUEUE-m),$(LINUX_DIR)/net/$(mod).ko)
259 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_QUEUE-m)))
260 $(call AddDepends/ipt)
261 endef
262
263 define KernelPackage/ipt-queue/description
264 Netfilter (IPv4) module for user-space packet queueing
265 Includes:
266 - QUEUE
267 endef
268
269 $(eval $(call KernelPackage,ipt-queue))
270
271
272 define KernelPackage/ipt-ulog
273 TITLE:=Module for user-space packet logging
274 KCONFIG:=$(KCONFIG_IPT_ULOG)
275 FILES:=$(foreach mod,$(IPT_ULOG-m),$(LINUX_DIR)/net/$(mod).ko)
276 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_ULOG-m)))
277 $(call AddDepends/ipt)
278 endef
279
280 define KernelPackage/ipt-ulog/description
281 Netfilter (IPv4) module for user-space packet logging
282 Includes:
283 - ULOG
284 endef
285
286 $(eval $(call KernelPackage,ipt-ulog))
287
288
289 define KernelPackage/ipt-tproxy
290 TITLE:=Transparent proxying support
291 KCONFIG:= \
292 CONFIG_NETFILTER_TPROXY \
293 CONFIG_NETFILTER_XT_MATCH_SOCKET \
294 CONFIG_NETFILTER_XT_TARGET_TPROXY
295 FILES:= \
296 $(LINUX_DIR)/net/netfilter/nf_tproxy_core.ko \
297 $(foreach mod,$(IPT_TPROXY-m),$(LINUX_DIR)/net/$(mod).ko)
298 AUTOLOAD:=$(call AutoLoad,45,$(notdir nf_tproxy_core $(IPT_TPROXY-m)))
299 $(call AddDepends/ipt)
300 endef
301
302 define KernelPackage/ipt-tproxy/description
303 Kernel modules for Transparent Proxying
304 endef
305
306 $(eval $(call KernelPackage,ipt-tproxy))
307
308
309 define KernelPackage/ipt-iprange
310 TITLE:=Module for matching ip ranges
311 KCONFIG:=$(KCONFIG_IPT_IPRANGE)
312 FILES:=$(foreach mod,$(IPT_IPRANGE-m),$(LINUX_DIR)/net/$(mod).ko)
313 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_IPRANGE-m)))
314 $(call AddDepends/ipt)
315 endef
316
317 define KernelPackage/ipt-iprange/description
318 Netfilter (IPv4) module for matching ip ranges
319 Includes:
320 - iprange
321 endef
322
323 $(eval $(call KernelPackage,ipt-iprange))
324
325
326 define KernelPackage/ipt-extra
327 TITLE:=Extra modules
328 KCONFIG:=$(KCONFIG_IPT_EXTRA)
329 FILES:=$(foreach mod,$(IPT_EXTRA-m),$(LINUX_DIR)/net/$(mod).ko)
330 AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_EXTRA-m)))
331 $(call AddDepends/ipt)
332 endef
333
334 define KernelPackage/ipt-extra/description
335 Other Netfilter (IPv4) kernel modules
336 Includes:
337 - condition (2.4 only)
338 - owner
339 - physdev (if bridge support was enabled in kernel)
340 - pkttype
341 - quota
342 endef
343
344 $(eval $(call KernelPackage,ipt-extra))
345
346
347 define KernelPackage/ip6tables
348 SUBMENU:=$(NF_MENU)
349 TITLE:=IPv6 modules
350 DEPENDS:=+kmod-ipv6
351 KCONFIG:=$(KCONFIG_IPT_IPV6)
352 FILES:=$(foreach mod,$(IPT_IPV6-m),$(LINUX_DIR)/net/$(mod).ko)
353 AUTOLOAD:=$(call AutoLoad,49,$(notdir $(IPT_IPV6-m)))
354 endef
355
356 define KernelPackage/ip6tables/description
357 Netfilter IPv6 firewalling support
358 endef
359
360 $(eval $(call KernelPackage,ip6tables))
361
362
363 define KernelPackage/arptables
364 SUBMENU:=$(NF_MENU)
365 TITLE:=ARP firewalling modules
366 FILES:=$(LINUX_DIR)/net/ipv4/netfilter/arp*.ko
367 KCONFIG:=CONFIG_IP_NF_ARPTABLES \
368 CONFIG_IP_NF_ARPFILTER \
369 CONFIG_IP_NF_ARP_MANGLE
370 AUTOLOAD:=$(call AutoLoad,49,$(notdir $(patsubst %.ko,%,$(wildcard $(LINUX_DIR)/net/ipv4/netfilter/arp*.ko))))
371 endef
372
373 define KernelPackage/arptables/description
374 Kernel modules for ARP firewalling
375 endef
376
377 $(eval $(call KernelPackage,arptables))
378
379
380 define KernelPackage/ebtables
381 SUBMENU:=$(NF_MENU)
382 TITLE:=Bridge firewalling modules
383 FILES:=$(foreach mod,$(EBTABLES-m),$(LINUX_DIR)/net/$(mod).ko)
384 KCONFIG:=CONFIG_BRIDGE_NETFILTER=y \
385 $(KCONFIG_EBTABLES)
386 AUTOLOAD:=$(call AutoLoad,49,$(notdir $(EBTABLES-m)))
387 endef
388
389 define KernelPackage/ebtables/description
390 ebtables is a general, extensible frame/packet identification
391 framework. It provides you to do Ethernet
392 filtering/NAT/brouting on the Ethernet bridge.
393 endef
394
395 $(eval $(call KernelPackage,ebtables))
396
397
398 define AddDepends/ebtables
399 SUBMENU:=$(NF_MENU)
400 DEPENDS+=kmod-ebtables $(1)
401 endef
402
403
404 define KernelPackage/ebtables-ipv4
405 TITLE:=ebtables: IPv4 support
406 FILES:=$(foreach mod,$(EBTABLES_IP4-m),$(LINUX_DIR)/net/$(mod).ko)
407 KCONFIG:=$(KCONFIG_EBTABLES_IP4)
408 AUTOLOAD:=$(call AutoLoad,49,$(notdir $(EBTABLES_IP4-m)))
409 $(call AddDepends/ebtables)
410 endef
411
412 define KernelPackage/ebtables-ipv4/description
413 This option adds the IPv4 support to ebtables, which allows basic
414 IPv4 header field filtering, ARP filtering as well as SNAT, DNAT targets.
415 endef
416
417 $(eval $(call KernelPackage,ebtables-ipv4))
418
419
420 define KernelPackage/ebtables-ipv6
421 TITLE:=ebtables: IPv6 support
422 FILES:=$(foreach mod,$(EBTABLES_IP6-m),$(LINUX_DIR)/net/$(mod).ko)
423 KCONFIG:=$(KCONFIG_EBTABLES_IP6)
424 AUTOLOAD:=$(call AutoLoad,49,$(notdir $(EBTABLES_IP6-m)))
425 $(call AddDepends/ebtables)
426 endef
427
428 define KernelPackage/ebtables-ipv6/description
429 This option adds the IPv6 support to ebtables, which allows basic
430 IPv6 header field filtering and target support.
431 endef
432
433 $(eval $(call KernelPackage,ebtables-ipv6))
434
435
436 define KernelPackage/ebtables-watchers
437 TITLE:=ebtables: watchers support
438 FILES:=$(foreach mod,$(EBTABLES_WATCHERS-m),$(LINUX_DIR)/net/$(mod).ko)
439 KCONFIG:=$(KCONFIG_EBTABLES_WATCHERS)
440 AUTOLOAD:=$(call AutoLoad,49,$(notdir $(EBTABLES_WATCHERS-m)))
441 $(call AddDepends/ebtables)
442 endef
443
444 define KernelPackage/ebtables-watchers/description
445 This option adds the log watchers, that you can use in any rule
446 in any ebtables table.
447 endef
448
449 $(eval $(call KernelPackage,ebtables-watchers))
450
451
452 define KernelPackage/nfnetlink
453 SUBMENU:=$(NF_MENU)
454 TITLE:=Netlink-based userspace interface
455 DEPENDS:=+kmod-ipt-core
456 FILES:=$(LINUX_DIR)/net/netfilter/nfnetlink.ko
457 KCONFIG:=CONFIG_NETFILTER_NETLINK
458 AUTOLOAD:=$(call AutoLoad,48,nfnetlink)
459 endef
460
461 define KernelPackage/nfnetlink/description
462 Kernel modules support for a netlink-based userspace interface
463 endef
464
465 $(eval $(call KernelPackage,nfnetlink))
466
467
468 define AddDepends/nfnetlink
469 SUBMENU:=$(NF_MENU)
470 DEPENDS+=+kmod-nfnetlink $(1)
471 endef
472
473
474 define KernelPackage/nfnetlink-log
475 TITLE:=Netfilter LOG over NFNETLINK interface
476 FILES:=$(LINUX_DIR)/net/netfilter/nfnetlink_log.ko
477 KCONFIG:=CONFIG_NETFILTER_NETLINK_LOG
478 AUTOLOAD:=$(call AutoLoad,48,nfnetlink_log)
479 $(call AddDepends/nfnetlink)
480 endef
481
482 define KernelPackage/nfnetlink-log/description
483 Kernel modules support for logging packets via NFNETLINK
484 endef
485
486 $(eval $(call KernelPackage,nfnetlink-log))
487
488
489 define KernelPackage/nfnetlink-queue
490 TITLE:=Netfilter QUEUE over NFNETLINK interface
491 FILES:=$(LINUX_DIR)/net/netfilter/nfnetlink_queue.ko
492 KCONFIG:=CONFIG_NETFILTER_NETLINK_QUEUE
493 AUTOLOAD:=$(call AutoLoad,48,nfnetlink_queue)
494 $(call AddDepends/nfnetlink)
495 endef
496
497 define KernelPackage/nfnetlink-queue/description
498 Kernel modules support for queueing packets via NFNETLINK
499 endef
500
501 $(eval $(call KernelPackage,nfnetlink-queue))
502
503
504 define KernelPackage/nf-conntrack-netlink
505 TITLE:=Connection tracking netlink interface
506 FILES:=$(LINUX_DIR)/net/netfilter/nf_conntrack_netlink.ko
507 KCONFIG:=CONFIG_NF_CT_NETLINK
508 AUTOLOAD:=$(call AutoLoad,49,nf_conntrack_netlink)
509 $(call AddDepends/nfnetlink,+kmod-ipt-conntrack)
510 endef
511
512 define KernelPackage/nf-conntrack-netlink/description
513 Kernel modules support for a netlink-based connection tracking
514 userspace interface
515 endef
516
517 $(eval $(call KernelPackage,nf-conntrack-netlink))
518
519 define KernelPackage/ipt-hashlimit
520 SUBMENU:=$(NF_MENU)
521 TITLE:=Netfilter hashlimit match
522 KCONFIG:=$(KCONFIG_IPT_HASHLIMIT)
523 FILES:=$(LINUX_DIR)/net/netfilter/xt_hashlimit.ko
524 AUTOLOAD:=$(call AutoLoad,50,xt_hashlimit)
525 $(call KernelPackage/ipt)
526 endef
527
528 define KernelPackage/ipt-hashlimit/description
529 Kernel modules support for the hashlimit bucket match module
530 endef
531
532 $(eval $(call KernelPackage,ipt-hashlimit))
This page took 0.078051 seconds and 5 git commands to generate.