kernel/modules: add kmod-sched-ipset package
[openwrt/openwrt.git] / package / kernel / linux / modules / netsupport.mk
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 NETWORK_SUPPORT_MENU:=Network Support
9
10 define KernelPackage/atm
11 SUBMENU:=$(NETWORK_SUPPORT_MENU)
12 TITLE:=ATM support
13 KCONFIG:= \
14 CONFIG_ATM \
15 CONFIG_ATM_BR2684
16 FILES:= \
17 $(LINUX_DIR)/net/atm/atm.ko \
18 $(LINUX_DIR)/net/atm/br2684.ko
19 AUTOLOAD:=$(call AutoLoad,30,atm br2684)
20 endef
21
22 define KernelPackage/atm/description
23 Kernel modules for ATM support
24 endef
25
26 $(eval $(call KernelPackage,atm))
27
28
29 define KernelPackage/atmtcp
30 SUBMENU:=$(NETWORK_SUPPORT_MENU)
31 TITLE:=ATM over TCP
32 DEPENDS:=kmod-atm
33 KCONFIG:=CONFIG_ATM_TCP CONFIG_ATM_DRIVERS=y
34 FILES:=$(LINUX_DIR)/drivers/atm/atmtcp.ko
35 AUTOLOAD:=$(call AutoLoad,40,atmtcp)
36 endef
37
38 define KernelPackage/atmtcp/description
39 Kernel module for ATM over TCP support
40 endef
41
42 $(eval $(call KernelPackage,atmtcp))
43
44
45 define KernelPackage/bonding
46 SUBMENU:=$(NETWORK_SUPPORT_MENU)
47 TITLE:=Ethernet bonding driver
48 KCONFIG:=CONFIG_BONDING
49 FILES:=$(LINUX_DIR)/drivers/net/bonding/bonding.ko
50 AUTOLOAD:=$(call AutoLoad,40,bonding)
51 endef
52
53 define KernelPackage/bonding/description
54 Kernel module for NIC bonding.
55 endef
56
57 $(eval $(call KernelPackage,bonding))
58
59
60 define KernelPackage/udptunnel4
61 SUBMENU:=$(NETWORK_SUPPORT_MENU)
62 TITLE:=IPv4 UDP tunneling support
63 KCONFIG:= \
64 CONFIG_NET_UDP_TUNNEL \
65 CONFIG_VXLAN=m
66 HIDDEN:=1
67 FILES:=$(LINUX_DIR)/net/ipv4/udp_tunnel.ko
68 AUTOLOAD:=$(call AutoLoad,32,udp_tunnel)
69 endef
70
71
72 $(eval $(call KernelPackage,udptunnel4))
73
74 define KernelPackage/udptunnel6
75 SUBMENU:=$(NETWORK_SUPPORT_MENU)
76 TITLE:=IPv6 UDP tunneling support
77 DEPENDS:=@IPV6
78 KCONFIG:= \
79 CONFIG_NET_UDP_TUNNEL \
80 CONFIG_VXLAN=m
81 HIDDEN:=1
82 FILES:=$(LINUX_DIR)/net/ipv6/ip6_udp_tunnel.ko
83 AUTOLOAD:=$(call AutoLoad,32,ip6_udp_tunnel)
84 endef
85
86 $(eval $(call KernelPackage,udptunnel6))
87
88
89 define KernelPackage/vxlan
90 SUBMENU:=$(NETWORK_SUPPORT_MENU)
91 TITLE:=Native VXLAN Kernel support
92 DEPENDS:= \
93 +kmod-iptunnel \
94 +kmod-udptunnel4 \
95 +IPV6:kmod-udptunnel6
96 KCONFIG:=CONFIG_VXLAN
97 FILES:=$(LINUX_DIR)/drivers/net/vxlan.ko
98 AUTOLOAD:=$(call AutoLoad,13,vxlan)
99 endef
100
101 define KernelPackage/vxlan/description
102 Kernel module for supporting VXLAN in the Kernel.
103 Requires Kernel 3.12 or newer.
104 endef
105
106 $(eval $(call KernelPackage,vxlan))
107
108
109 define KernelPackage/geneve
110 SUBMENU:=$(NETWORK_SUPPORT_MENU)
111 TITLE:=Generic Network Virtualization Encapsulation (Geneve) support
112 DEPENDS:= \
113 +kmod-iptunnel \
114 +kmod-udptunnel4 \
115 +IPV6:kmod-udptunnel6
116 KCONFIG:=CONFIG_GENEVE
117 FILES:= \
118 $(LINUX_DIR)/net/ipv4/geneve.ko@le4.1 \
119 $(LINUX_DIR)/drivers/net/geneve.ko@ge4.2
120 AUTOLOAD:=$(call AutoLoad,13,geneve)
121 endef
122
123 define KernelPackage/geneve/description
124 Kernel module for supporting Geneve in the Kernel.
125 Requires Kernel 3.18 or newer.
126 endef
127
128 $(eval $(call KernelPackage,geneve))
129
130
131 define KernelPackage/capi
132 SUBMENU:=$(NETWORK_SUPPORT_MENU)
133 TITLE:=CAPI (ISDN) Support
134 KCONFIG:= \
135 CONFIG_ISDN_CAPI \
136 CONFIG_ISDN_CAPI_CAPI20 \
137 CONFIG_ISDN_CAPIFS \
138 CONFIG_ISDN_CAPI_CAPIFS
139 FILES:= \
140 $(LINUX_DIR)/drivers/isdn/capi/kernelcapi.ko \
141 $(LINUX_DIR)/drivers/isdn/capi/capi.ko
142 AUTOLOAD:=$(call AutoLoad,30,kernelcapi capi)
143 endef
144
145 define KernelPackage/capi/description
146 Kernel module for basic CAPI (ISDN) support
147 endef
148
149 $(eval $(call KernelPackage,capi))
150
151 define KernelPackage/misdn
152 SUBMENU:=$(NETWORK_SUPPORT_MENU)
153 TITLE:=mISDN (ISDN) Support
154 KCONFIG:= \
155 CONFIG_ISDN=y \
156 CONFIG_MISDN \
157 CONFIG_MISDN_DSP \
158 CONFIG_MISDN_L1OIP
159 FILES:= \
160 $(LINUX_DIR)/drivers/isdn/mISDN/mISDN_core.ko \
161 $(LINUX_DIR)/drivers/isdn/mISDN/mISDN_dsp.ko \
162 $(LINUX_DIR)/drivers/isdn/mISDN/l1oip.ko
163 AUTOLOAD:=$(call AutoLoad,30,mISDN_core mISDN_dsp l1oip)
164 endef
165
166 define KernelPackage/misdn/description
167 Modular ISDN driver support
168 endef
169
170 $(eval $(call KernelPackage,misdn))
171
172
173 define KernelPackage/isdn4linux
174 SUBMENU:=$(NETWORK_SUPPORT_MENU)
175 TITLE:=Old ISDN4Linux (deprecated)
176 DEPENDS:=+kmod-ppp
177 KCONFIG:= \
178 CONFIG_ISDN=y \
179 CONFIG_ISDN_I4L \
180 CONFIG_ISDN_PPP=y \
181 CONFIG_ISDN_PPP_VJ=y \
182 CONFIG_ISDN_MPP=y \
183 CONFIG_IPPP_FILTER=y \
184 CONFIG_ISDN_PPP_BSDCOMP \
185 CONFIG_ISDN_CAPI_MIDDLEWARE=y \
186 CONFIG_ISDN_CAPI_CAPIFS_BOOL=y \
187 CONFIG_ISDN_AUDIO=y \
188 CONFIG_ISDN_TTY_FAX=y \
189 CONFIG_ISDN_X25=y \
190 CONFIG_ISDN_DIVERSION
191 FILES:= \
192 $(LINUX_DIR)/drivers/isdn/divert/dss1_divert.ko \
193 $(LINUX_DIR)/drivers/isdn/i4l/isdn.ko \
194 $(LINUX_DIR)/drivers/isdn/i4l/isdn_bsdcomp.ko
195 AUTOLOAD:=$(call AutoLoad,40,isdn isdn_bsdcomp dss1_divert)
196 endef
197
198 define KernelPackage/isdn4linux/description
199 This driver allows you to use an ISDN adapter for networking
200 endef
201
202 $(eval $(call KernelPackage,isdn4linux))
203
204
205 define KernelPackage/ipip
206 SUBMENU:=$(NETWORK_SUPPORT_MENU)
207 TITLE:=IP-in-IP encapsulation
208 DEPENDS:=+kmod-iptunnel +kmod-iptunnel4
209 KCONFIG:=CONFIG_NET_IPIP
210 FILES:=$(LINUX_DIR)/net/ipv4/ipip.ko
211 AUTOLOAD:=$(call AutoLoad,32,ipip)
212 endef
213
214 define KernelPackage/ipip/description
215 Kernel modules for IP-in-IP encapsulation
216 endef
217
218 $(eval $(call KernelPackage,ipip))
219
220
221 IPSEC-m:= \
222 xfrm/xfrm_algo \
223 xfrm/xfrm_ipcomp \
224 xfrm/xfrm_user \
225 key/af_key \
226
227 define KernelPackage/ipsec
228 SUBMENU:=$(NETWORK_SUPPORT_MENU)
229 TITLE:=IPsec related modules (IPv4 and IPv6)
230 DEPENDS:= \
231 +kmod-crypto-authenc +kmod-crypto-cbc +kmod-crypto-deflate \
232 +kmod-crypto-des +kmod-crypto-echainiv +kmod-crypto-hmac \
233 +kmod-crypto-iv +kmod-crypto-md5 +kmod-crypto-sha1
234 KCONFIG:= \
235 CONFIG_NET_KEY \
236 CONFIG_XFRM_USER \
237 CONFIG_INET_IPCOMP \
238 CONFIG_XFRM_IPCOMP
239 FILES:=$(foreach mod,$(IPSEC-m),$(LINUX_DIR)/net/$(mod).ko)
240 AUTOLOAD:=$(call AutoLoad,30,$(notdir $(IPSEC-m)))
241 endef
242
243 define KernelPackage/ipsec/description
244 Kernel modules for IPsec support in both IPv4 and IPv6.
245 Includes:
246 - af_key
247 - xfrm_algo
248 - xfrm_ipcomp
249 - xfrm_user
250 endef
251
252 $(eval $(call KernelPackage,ipsec))
253
254
255 IPSEC4-m:= \
256 ipv4/ah4 \
257 ipv4/esp4 \
258 ipv4/xfrm4_mode_beet \
259 ipv4/xfrm4_mode_transport \
260 ipv4/xfrm4_mode_tunnel \
261 ipv4/xfrm4_tunnel \
262 ipv4/ipcomp \
263
264 define KernelPackage/ipsec4
265 SUBMENU:=$(NETWORK_SUPPORT_MENU)
266 TITLE:=IPsec related modules (IPv4)
267 DEPENDS:=kmod-ipsec +kmod-iptunnel4
268 KCONFIG:= \
269 CONFIG_INET_AH \
270 CONFIG_INET_ESP \
271 CONFIG_INET_IPCOMP \
272 CONFIG_INET_XFRM_MODE_BEET \
273 CONFIG_INET_XFRM_MODE_TRANSPORT \
274 CONFIG_INET_XFRM_MODE_TUNNEL \
275 CONFIG_INET_XFRM_TUNNEL \
276 CONFIG_INET_ESP_OFFLOAD=n
277 FILES:=$(foreach mod,$(IPSEC4-m),$(LINUX_DIR)/net/$(mod).ko)
278 AUTOLOAD:=$(call AutoLoad,32,$(notdir $(IPSEC4-m)))
279 endef
280
281 define KernelPackage/ipsec4/description
282 Kernel modules for IPsec support in IPv4.
283 Includes:
284 - ah4
285 - esp4
286 - ipcomp4
287 - xfrm4_mode_beet
288 - xfrm4_mode_transport
289 - xfrm4_mode_tunnel
290 - xfrm4_tunnel
291 endef
292
293 $(eval $(call KernelPackage,ipsec4))
294
295
296 IPSEC6-m:= \
297 ipv6/ah6 \
298 ipv6/esp6 \
299 ipv6/xfrm6_mode_beet \
300 ipv6/xfrm6_mode_transport \
301 ipv6/xfrm6_mode_tunnel \
302 ipv6/xfrm6_tunnel \
303 ipv6/ipcomp6 \
304
305 define KernelPackage/ipsec6
306 SUBMENU:=$(NETWORK_SUPPORT_MENU)
307 TITLE:=IPsec related modules (IPv6)
308 DEPENDS:=kmod-ipsec +kmod-iptunnel6
309 KCONFIG:= \
310 CONFIG_INET6_AH \
311 CONFIG_INET6_ESP \
312 CONFIG_INET6_IPCOMP \
313 CONFIG_INET6_XFRM_MODE_BEET \
314 CONFIG_INET6_XFRM_MODE_TRANSPORT \
315 CONFIG_INET6_XFRM_MODE_TUNNEL \
316 CONFIG_INET6_XFRM_TUNNEL \
317 CONFIG_INET6_ESP_OFFLOAD=n
318 FILES:=$(foreach mod,$(IPSEC6-m),$(LINUX_DIR)/net/$(mod).ko)
319 AUTOLOAD:=$(call AutoLoad,32,$(notdir $(IPSEC6-m)))
320 endef
321
322 define KernelPackage/ipsec6/description
323 Kernel modules for IPsec support in IPv6.
324 Includes:
325 - ah6
326 - esp6
327 - ipcomp6
328 - xfrm6_mode_beet
329 - xfrm6_mode_transport
330 - xfrm6_mode_tunnel
331 - xfrm6_tunnel
332 endef
333
334 $(eval $(call KernelPackage,ipsec6))
335
336
337 define KernelPackage/iptunnel
338 SUBMENU:=$(NETWORK_SUPPORT_MENU)
339 TITLE:=IP tunnel support
340 HIDDEN:=1
341 KCONFIG:= \
342 CONFIG_NET_IP_TUNNEL
343 FILES:=$(LINUX_DIR)/net/ipv4/ip_tunnel.ko
344 AUTOLOAD:=$(call AutoLoad,31,ip_tunnel)
345 endef
346
347 define KernelPackage/iptunnel/description
348 Kernel module for generic IP tunnel support
349 endef
350
351 $(eval $(call KernelPackage,iptunnel))
352
353
354 define KernelPackage/ip-vti
355 SUBMENU:=$(NETWORK_SUPPORT_MENU)
356 TITLE:=IP VTI (Virtual Tunnel Interface)
357 DEPENDS:=+kmod-iptunnel +kmod-iptunnel4 +kmod-ipsec4
358 KCONFIG:=CONFIG_NET_IPVTI
359 FILES:=$(LINUX_DIR)/net/ipv4/ip_vti.ko
360 AUTOLOAD:=$(call AutoLoad,33,ip_vti)
361 endef
362
363 define KernelPackage/ip-vti/description
364 Kernel modules for IP VTI (Virtual Tunnel Interface)
365 endef
366
367 $(eval $(call KernelPackage,ip-vti))
368
369
370 define KernelPackage/ip6-vti
371 SUBMENU:=$(NETWORK_SUPPORT_MENU)
372 TITLE:=IPv6 VTI (Virtual Tunnel Interface)
373 DEPENDS:=+kmod-iptunnel +kmod-ip6-tunnel +kmod-ipsec6
374 KCONFIG:=CONFIG_IPV6_VTI
375 FILES:=$(LINUX_DIR)/net/ipv6/ip6_vti.ko
376 AUTOLOAD:=$(call AutoLoad,33,ip6_vti)
377 endef
378
379 define KernelPackage/ip6-vti/description
380 Kernel modules for IPv6 VTI (Virtual Tunnel Interface)
381 endef
382
383 $(eval $(call KernelPackage,ip6-vti))
384
385
386 define KernelPackage/iptunnel4
387 SUBMENU:=$(NETWORK_SUPPORT_MENU)
388 TITLE:=IPv4 tunneling
389 HIDDEN:=1
390 KCONFIG:= \
391 CONFIG_INET_TUNNEL \
392 CONFIG_NET_IPIP=m
393 FILES:=$(LINUX_DIR)/net/ipv4/tunnel4.ko
394 AUTOLOAD:=$(call AutoLoad,31,tunnel4)
395 endef
396
397 define KernelPackage/iptunnel4/description
398 Kernel modules for IPv4 tunneling
399 endef
400
401 $(eval $(call KernelPackage,iptunnel4))
402
403
404 define KernelPackage/iptunnel6
405 SUBMENU:=$(NETWORK_SUPPORT_MENU)
406 TITLE:=IPv6 tunneling
407 DEPENDS:=@IPV6
408 KCONFIG:= \
409 CONFIG_INET6_TUNNEL
410 FILES:=$(LINUX_DIR)/net/ipv6/tunnel6.ko
411 AUTOLOAD:=$(call AutoLoad,31,tunnel6)
412 endef
413
414 define KernelPackage/iptunnel6/description
415 Kernel modules for IPv6 tunneling
416 endef
417
418 $(eval $(call KernelPackage,iptunnel6))
419
420
421 define KernelPackage/sit
422 SUBMENU:=$(NETWORK_SUPPORT_MENU)
423 DEPENDS:=@IPV6 +kmod-iptunnel +kmod-iptunnel4
424 TITLE:=IPv6-in-IPv4 tunnel
425 KCONFIG:=CONFIG_IPV6_SIT \
426 CONFIG_IPV6_SIT_6RD=y
427 FILES:=$(LINUX_DIR)/net/ipv6/sit.ko
428 AUTOLOAD:=$(call AutoLoad,32,sit)
429 endef
430
431 define KernelPackage/sit/description
432 Kernel modules for IPv6-in-IPv4 tunnelling
433 endef
434
435 $(eval $(call KernelPackage,sit))
436
437
438 define KernelPackage/fou
439 SUBMENU:=$(NETWORK_SUPPORT_MENU)
440 TITLE:=FOU and GUE decapsulation
441 DEPENDS:= \
442 +kmod-iptunnel \
443 +kmod-udptunnel4 \
444 +IPV6:kmod-udptunnel6
445 KCONFIG:= \
446 CONFIG_NET_FOU \
447 CONFIG_NET_FOU_IP_TUNNELS=y
448 FILES:=$(LINUX_DIR)/net/ipv4/fou.ko
449 AUTOLOAD:=$(call AutoProbe,fou)
450 endef
451
452 define KernelPackage/fou/description
453 Kernel module for FOU (Foo over UDP) and GUE (Generic UDP Encapsulation) tunnelling.
454 Requires Kernel 3.18 or newer.
455 endef
456
457 $(eval $(call KernelPackage,fou))
458
459
460 define KernelPackage/fou6
461 SUBMENU:=$(NETWORK_SUPPORT_MENU)
462 TITLE:=FOU and GUE decapsulation over IPv6
463 DEPENDS:= @IPV6 \
464 +kmod-fou \
465 +kmod-ip6-tunnel
466 KCONFIG:= \
467 CONFIG_IPV6_FOU \
468 CONFIG_IPV6_FOU_TUNNEL
469 FILES:=$(LINUX_DIR)/net/ipv6/fou6.ko
470 AUTOLOAD:=$(call AutoProbe,fou6)
471 endef
472
473 define KernelPackage/fou6/description
474 Kernel module for FOU (Foo over UDP) and GUE (Generic UDP Encapsulation) tunnelling over IPv6.
475 Requires Kernel 3.18 or newer.
476 endef
477
478 $(eval $(call KernelPackage,fou6))
479
480
481 define KernelPackage/ip6-tunnel
482 SUBMENU:=$(NETWORK_SUPPORT_MENU)
483 TITLE:=IP-in-IPv6 tunnelling
484 DEPENDS:=@IPV6 +kmod-iptunnel6
485 KCONFIG:= CONFIG_IPV6_TUNNEL
486 FILES:=$(LINUX_DIR)/net/ipv6/ip6_tunnel.ko
487 AUTOLOAD:=$(call AutoLoad,32,ip6_tunnel)
488 endef
489
490 define KernelPackage/ip6-tunnel/description
491 Kernel modules for IPv6-in-IPv6 and IPv4-in-IPv6 tunnelling
492 endef
493
494 $(eval $(call KernelPackage,ip6-tunnel))
495
496
497 define KernelPackage/gre
498 SUBMENU:=$(NETWORK_SUPPORT_MENU)
499 TITLE:=GRE support
500 DEPENDS:=+kmod-iptunnel
501 KCONFIG:=CONFIG_NET_IPGRE CONFIG_NET_IPGRE_DEMUX
502 FILES:=$(LINUX_DIR)/net/ipv4/ip_gre.ko $(LINUX_DIR)/net/ipv4/gre.ko
503 AUTOLOAD:=$(call AutoLoad,39,gre ip_gre)
504 endef
505
506 define KernelPackage/gre/description
507 Generic Routing Encapsulation support
508 endef
509
510 $(eval $(call KernelPackage,gre))
511
512
513 define KernelPackage/gre6
514 SUBMENU:=$(NETWORK_SUPPORT_MENU)
515 TITLE:=GRE support over IPV6
516 DEPENDS:=@IPV6 +kmod-iptunnel +kmod-ip6-tunnel +kmod-gre
517 KCONFIG:=CONFIG_IPV6_GRE
518 FILES:=$(LINUX_DIR)/net/ipv6/ip6_gre.ko
519 AUTOLOAD:=$(call AutoLoad,39,ip6_gre)
520 endef
521
522 define KernelPackage/gre6/description
523 Generic Routing Encapsulation support over IPv6
524 endef
525
526 $(eval $(call KernelPackage,gre6))
527
528
529 define KernelPackage/tun
530 SUBMENU:=$(NETWORK_SUPPORT_MENU)
531 TITLE:=Universal TUN/TAP driver
532 KCONFIG:=CONFIG_TUN
533 FILES:=$(LINUX_DIR)/drivers/net/tun.ko
534 AUTOLOAD:=$(call AutoLoad,30,tun)
535 endef
536
537 define KernelPackage/tun/description
538 Kernel support for the TUN/TAP tunneling device
539 endef
540
541 $(eval $(call KernelPackage,tun))
542
543
544 define KernelPackage/veth
545 SUBMENU:=$(NETWORK_SUPPORT_MENU)
546 TITLE:=Virtual ethernet pair device
547 KCONFIG:=CONFIG_VETH
548 FILES:=$(LINUX_DIR)/drivers/net/veth.ko
549 AUTOLOAD:=$(call AutoLoad,30,veth)
550 endef
551
552 define KernelPackage/veth/description
553 This device is a local ethernet tunnel. Devices are created in pairs.
554 When one end receives the packet it appears on its pair and vice
555 versa.
556 endef
557
558 $(eval $(call KernelPackage,veth))
559
560
561 define KernelPackage/slhc
562 SUBMENU:=$(NETWORK_SUPPORT_MENU)
563 HIDDEN:=1
564 TITLE:=Serial Line Header Compression
565 DEPENDS:=+kmod-lib-crc-ccitt
566 KCONFIG:=CONFIG_SLHC
567 FILES:=$(LINUX_DIR)/drivers/net/slip/slhc.ko
568 endef
569
570 $(eval $(call KernelPackage,slhc))
571
572
573 define KernelPackage/ppp
574 SUBMENU:=$(NETWORK_SUPPORT_MENU)
575 TITLE:=PPP modules
576 DEPENDS:=+kmod-lib-crc-ccitt +kmod-slhc
577 KCONFIG:= \
578 CONFIG_PPP \
579 CONFIG_PPP_ASYNC
580 FILES:= \
581 $(LINUX_DIR)/drivers/net/ppp/ppp_async.ko \
582 $(LINUX_DIR)/drivers/net/ppp/ppp_generic.ko
583 AUTOLOAD:=$(call AutoProbe,ppp_async)
584 endef
585
586 define KernelPackage/ppp/description
587 Kernel modules for PPP support
588 endef
589
590 $(eval $(call KernelPackage,ppp))
591
592
593 define KernelPackage/ppp-synctty
594 SUBMENU:=$(NETWORK_SUPPORT_MENU)
595 TITLE:=PPP sync tty support
596 DEPENDS:=kmod-ppp
597 KCONFIG:=CONFIG_PPP_SYNC_TTY
598 FILES:=$(LINUX_DIR)/drivers/net/ppp/ppp_synctty.ko
599 AUTOLOAD:=$(call AutoProbe,ppp_synctty)
600 endef
601
602 define KernelPackage/ppp-synctty/description
603 Kernel modules for PPP sync tty support
604 endef
605
606 $(eval $(call KernelPackage,ppp-synctty))
607
608
609 define KernelPackage/pppox
610 SUBMENU:=$(NETWORK_SUPPORT_MENU)
611 TITLE:=PPPoX helper
612 DEPENDS:=kmod-ppp
613 KCONFIG:=CONFIG_PPPOE
614 FILES:=$(LINUX_DIR)/drivers/net/ppp/pppox.ko
615 endef
616
617 define KernelPackage/pppox/description
618 Kernel helper module for PPPoE and PPTP support
619 endef
620
621 $(eval $(call KernelPackage,pppox))
622
623
624 define KernelPackage/pppoe
625 SUBMENU:=$(NETWORK_SUPPORT_MENU)
626 TITLE:=PPPoE support
627 DEPENDS:=kmod-ppp +kmod-pppox
628 KCONFIG:=CONFIG_PPPOE
629 FILES:=$(LINUX_DIR)/drivers/net/ppp/pppoe.ko
630 AUTOLOAD:=$(call AutoProbe,pppoe)
631 endef
632
633 define KernelPackage/pppoe/description
634 Kernel module for PPPoE (PPP over Ethernet) support
635 endef
636
637 $(eval $(call KernelPackage,pppoe))
638
639
640 define KernelPackage/pppoa
641 SUBMENU:=$(NETWORK_SUPPORT_MENU)
642 TITLE:=PPPoA support
643 DEPENDS:=kmod-ppp +kmod-atm
644 KCONFIG:=CONFIG_PPPOATM CONFIG_ATM_DRIVERS=y
645 FILES:=$(LINUX_DIR)/net/atm/pppoatm.ko
646 AUTOLOAD:=$(call AutoLoad,40,pppoatm)
647 endef
648
649 define KernelPackage/pppoa/description
650 Kernel modules for PPPoA (PPP over ATM) support
651 endef
652
653 $(eval $(call KernelPackage,pppoa))
654
655
656 define KernelPackage/pptp
657 SUBMENU:=$(NETWORK_SUPPORT_MENU)
658 TITLE:=PPtP support
659 DEPENDS:=kmod-ppp +kmod-gre +kmod-pppox
660 KCONFIG:=CONFIG_PPTP
661 FILES:=$(LINUX_DIR)/drivers/net/ppp/pptp.ko
662 AUTOLOAD:=$(call AutoProbe,pptp)
663 endef
664
665 $(eval $(call KernelPackage,pptp))
666
667
668 define KernelPackage/pppol2tp
669 SUBMENU:=$(NETWORK_SUPPORT_MENU)
670 TITLE:=PPPoL2TP support
671 DEPENDS:=kmod-ppp +kmod-pppox +kmod-l2tp
672 KCONFIG:=CONFIG_PPPOL2TP
673 FILES:=$(LINUX_DIR)/net/l2tp/l2tp_ppp.ko
674 AUTOLOAD:=$(call AutoProbe,l2tp_ppp)
675 endef
676
677 define KernelPackage/pppol2tp/description
678 Kernel modules for PPPoL2TP (PPP over L2TP) support
679 endef
680
681 $(eval $(call KernelPackage,pppol2tp))
682
683
684 define KernelPackage/ipoa
685 SUBMENU:=$(NETWORK_SUPPORT_MENU)
686 TITLE:=IPoA support
687 DEPENDS:=kmod-atm
688 KCONFIG:=CONFIG_ATM_CLIP
689 FILES:=$(LINUX_DIR)/net/atm/clip.ko
690 AUTOLOAD:=$(call AutoProbe,clip)
691 endef
692
693 define KernelPackage/ipoa/description
694 Kernel modules for IPoA (IP over ATM) support
695 endef
696
697 $(eval $(call KernelPackage,ipoa))
698
699
700 define KernelPackage/mppe
701 SUBMENU:=$(NETWORK_SUPPORT_MENU)
702 TITLE:=Microsoft PPP compression/encryption
703 DEPENDS:=kmod-ppp +kmod-crypto-sha1 +kmod-crypto-ecb
704 KCONFIG:= \
705 CONFIG_PPP_MPPE_MPPC \
706 CONFIG_PPP_MPPE
707 FILES:=$(LINUX_DIR)/drivers/net/ppp/ppp_mppe.ko
708 AUTOLOAD:=$(call AutoProbe,ppp_mppe)
709 endef
710
711 define KernelPackage/mppe/description
712 Kernel modules for Microsoft PPP compression/encryption
713 endef
714
715 $(eval $(call KernelPackage,mppe))
716
717
718 SCHED_MODULES = $(patsubst $(LINUX_DIR)/net/sched/%.ko,%,$(wildcard $(LINUX_DIR)/net/sched/*.ko))
719 SCHED_MODULES_CORE = sch_ingress sch_fq_codel sch_hfsc sch_htb sch_tbf cls_basic cls_fw cls_route cls_flow cls_tcindex cls_u32 em_u32 act_mirred act_skbedit cls_matchall
720 SCHED_MODULES_FILTER = $(SCHED_MODULES_CORE) act_connmark sch_netem em_ipset
721 SCHED_MODULES_EXTRA = $(filter-out $(SCHED_MODULES_FILTER),$(SCHED_MODULES))
722 SCHED_FILES = $(patsubst %,$(LINUX_DIR)/net/sched/%.ko,$(filter $(SCHED_MODULES_CORE),$(SCHED_MODULES)))
723 SCHED_FILES_EXTRA = $(patsubst %,$(LINUX_DIR)/net/sched/%.ko,$(SCHED_MODULES_EXTRA))
724
725 define KernelPackage/sched-core
726 SUBMENU:=$(NETWORK_SUPPORT_MENU)
727 TITLE:=Traffic schedulers
728 DEPENDS:=@!LINUX_3_18
729 KCONFIG:= \
730 CONFIG_NET_SCHED=y \
731 CONFIG_NET_SCH_HFSC \
732 CONFIG_NET_SCH_HTB \
733 CONFIG_NET_SCH_TBF \
734 CONFIG_NET_SCH_INGRESS \
735 CONFIG_NET_SCH_FQ_CODEL \
736 CONFIG_NET_CLS=y \
737 CONFIG_NET_CLS_ACT=y \
738 CONFIG_NET_CLS_BASIC \
739 CONFIG_NET_CLS_FLOW \
740 CONFIG_NET_CLS_FW \
741 CONFIG_NET_CLS_ROUTE4 \
742 CONFIG_NET_CLS_TCINDEX \
743 CONFIG_NET_CLS_U32 \
744 CONFIG_NET_ACT_MIRRED \
745 CONFIG_NET_ACT_SKBEDIT \
746 CONFIG_NET_CLS_MATCHALL \
747 CONFIG_NET_EMATCH=y \
748 CONFIG_NET_EMATCH_U32
749 FILES:=$(SCHED_FILES)
750 AUTOLOAD:=$(call AutoLoad,70, $(SCHED_MODULES_CORE))
751 endef
752
753 define KernelPackage/sched-core/description
754 Core kernel scheduler support for IP traffic
755 endef
756
757 $(eval $(call KernelPackage,sched-core))
758
759
760 define KernelPackage/sched-connmark
761 SUBMENU:=$(NETWORK_SUPPORT_MENU)
762 TITLE:=Traffic shaper conntrack mark support
763 DEPENDS:=+kmod-sched-core +kmod-ipt-core +kmod-ipt-conntrack-extra
764 KCONFIG:=CONFIG_NET_ACT_CONNMARK
765 FILES:=$(LINUX_DIR)/net/sched/act_connmark.ko
766 AUTOLOAD:=$(call AutoLoad,71, act_connmark)
767 endef
768 $(eval $(call KernelPackage,sched-connmark))
769
770
771 define KernelPackage/sched-ipset
772 SUBMENU:=$(NETWORK_SUPPORT_MENU)
773 TITLE:=Traffic shaper ipset support
774 DEPENDS:=+kmod-sched-core +kmod-ipt-ipset
775 KCONFIG:= \
776 CONFIG_NET_EMATCH_IPSET
777 FILES:= \
778 $(LINUX_DIR)/net/sched/em_ipset.ko
779 AUTOLOAD:=$(call AutoLoad,72,em_ipset)
780 endef
781
782 $(eval $(call KernelPackage,sched-ipset))
783
784
785 define KernelPackage/sched
786 SUBMENU:=$(NETWORK_SUPPORT_MENU)
787 TITLE:=Extra traffic schedulers
788 DEPENDS:=+kmod-sched-core +kmod-ipt-core +kmod-lib-crc32c
789 KCONFIG:= \
790 CONFIG_NET_SCH_CODEL \
791 CONFIG_NET_SCH_DSMARK \
792 CONFIG_NET_SCH_FIFO \
793 CONFIG_NET_SCH_GRED \
794 CONFIG_NET_SCH_MULTIQ \
795 CONFIG_NET_SCH_PRIO \
796 CONFIG_NET_SCH_RED \
797 CONFIG_NET_SCH_SFQ \
798 CONFIG_NET_SCH_TEQL \
799 CONFIG_NET_SCH_FQ \
800 CONFIG_NET_SCH_PIE \
801 CONFIG_NET_ACT_POLICE \
802 CONFIG_NET_ACT_GACT \
803 CONFIG_NET_ACT_IPT \
804 CONFIG_NET_ACT_PEDIT \
805 CONFIG_NET_ACT_SIMP \
806 CONFIG_NET_ACT_CSUM \
807 CONFIG_NET_EMATCH_CMP \
808 CONFIG_NET_EMATCH_NBYTE \
809 CONFIG_NET_EMATCH_META \
810 CONFIG_NET_EMATCH_TEXT
811 FILES:=$(SCHED_FILES_EXTRA)
812 AUTOLOAD:=$(call AutoLoad,73, $(SCHED_MODULES_EXTRA))
813 endef
814
815 define KernelPackage/sched/description
816 Extra kernel schedulers modules for IP traffic
817 endef
818
819 $(eval $(call KernelPackage,sched))
820
821
822 define KernelPackage/tcp-bbr
823 SUBMENU:=$(NETWORK_SUPPORT_MENU)
824 TITLE:=BBR TCP congestion control
825 DEPENDS:=@!LINUX_3_18 +LINUX_4_9:kmod-sched
826 KCONFIG:= \
827 CONFIG_TCP_CONG_ADVANCED=y \
828 CONFIG_TCP_CONG_BBR
829 FILES:=$(LINUX_DIR)/net/ipv4/tcp_bbr.ko
830 AUTOLOAD:=$(call AutoLoad,74,tcp_bbr)
831 endef
832
833 define KernelPackage/tcp-bbr/description
834 Kernel module for BBR (Bottleneck Bandwidth and RTT) TCP congestion
835 control. It requires the fq ("Fair Queue") pacing packet scheduler.
836 For kernel 4.13+, TCP internal pacing is implemented as fallback.
837 endef
838
839 ifdef CONFIG_LINUX_4_9
840 TCP_BBR_SYSCTL_CONF:=sysctl-tcp-bbr-k4_9.conf
841 else
842 TCP_BBR_SYSCTL_CONF:=sysctl-tcp-bbr.conf
843 endif
844
845 define KernelPackage/tcp-bbr/install
846 $(INSTALL_DIR) $(1)/etc/sysctl.d
847 $(INSTALL_DATA) ./files/$(TCP_BBR_SYSCTL_CONF) $(1)/etc/sysctl.d/12-tcp-bbr.conf
848 endef
849
850 $(eval $(call KernelPackage,tcp-bbr))
851
852
853 define KernelPackage/ax25
854 SUBMENU:=$(NETWORK_SUPPORT_MENU)
855 TITLE:=AX25 support
856 DEPENDS:=+kmod-lib-crc16
857 KCONFIG:= \
858 CONFIG_HAMRADIO=y \
859 CONFIG_AX25 \
860 CONFIG_MKISS
861 FILES:= \
862 $(LINUX_DIR)/net/ax25/ax25.ko \
863 $(LINUX_DIR)/drivers/net/hamradio/mkiss.ko
864 AUTOLOAD:=$(call AutoLoad,80,ax25 mkiss)
865 endef
866
867 define KernelPackage/ax25/description
868 Kernel modules for AX25 support
869 endef
870
871 $(eval $(call KernelPackage,ax25))
872
873
874 define KernelPackage/pktgen
875 SUBMENU:=$(NETWORK_SUPPORT_MENU)
876 DEPENDS:=@!TARGET_uml
877 TITLE:=Network packet generator
878 KCONFIG:=CONFIG_NET_PKTGEN
879 FILES:=$(LINUX_DIR)/net/core/pktgen.ko
880 AUTOLOAD:=$(call AutoLoad,99,pktgen)
881 endef
882
883 define KernelPackage/pktgen/description
884 Kernel modules for the Network Packet Generator
885 endef
886
887 $(eval $(call KernelPackage,pktgen))
888
889 define KernelPackage/l2tp
890 SUBMENU:=$(NETWORK_SUPPORT_MENU)
891 TITLE:=Layer Two Tunneling Protocol (L2TP)
892 DEPENDS:= \
893 +kmod-udptunnel4 \
894 +IPV6:kmod-udptunnel6
895 KCONFIG:=CONFIG_L2TP \
896 CONFIG_L2TP_V3=y \
897 CONFIG_L2TP_DEBUGFS=n
898 FILES:=$(LINUX_DIR)/net/l2tp/l2tp_core.ko \
899 $(LINUX_DIR)/net/l2tp/l2tp_netlink.ko
900 AUTOLOAD:=$(call AutoLoad,32,l2tp_core l2tp_netlink)
901 endef
902
903 define KernelPackage/l2tp/description
904 Kernel modules for L2TP V3 Support
905 endef
906
907 $(eval $(call KernelPackage,l2tp))
908
909
910 define KernelPackage/l2tp-eth
911 SUBMENU:=$(NETWORK_SUPPORT_MENU)
912 TITLE:=L2TP ethernet pseudowire support for L2TPv3
913 DEPENDS:=+kmod-l2tp
914 KCONFIG:=CONFIG_L2TP_ETH
915 FILES:=$(LINUX_DIR)/net/l2tp/l2tp_eth.ko
916 AUTOLOAD:=$(call AutoLoad,33,l2tp_eth)
917 endef
918
919 define KernelPackage/l2tp-eth/description
920 Kernel modules for L2TP ethernet pseudowire support for L2TPv3
921 endef
922
923 $(eval $(call KernelPackage,l2tp-eth))
924
925 define KernelPackage/l2tp-ip
926 SUBMENU:=$(NETWORK_SUPPORT_MENU)
927 TITLE:=L2TP IP encapsulation for L2TPv3
928 DEPENDS:=+kmod-l2tp
929 KCONFIG:=CONFIG_L2TP_IP
930 FILES:= \
931 $(LINUX_DIR)/net/l2tp/l2tp_ip.ko \
932 $(if $(CONFIG_IPV6),$(LINUX_DIR)/net/l2tp/l2tp_ip6.ko)
933 AUTOLOAD:=$(call AutoLoad,33,l2tp_ip $(if $(CONFIG_IPV6),l2tp_ip6))
934 endef
935
936 define KernelPackage/l2tp-ip/description
937 Kernel modules for L2TP IP encapsulation for L2TPv3
938 endef
939
940 $(eval $(call KernelPackage,l2tp-ip))
941
942
943 define KernelPackage/sctp
944 SUBMENU:=$(NETWORK_SUPPORT_MENU)
945 TITLE:=SCTP protocol kernel support
946 KCONFIG:=\
947 CONFIG_IP_SCTP \
948 CONFIG_SCTP_DBG_MSG=n \
949 CONFIG_SCTP_DBG_OBJCNT=n \
950 CONFIG_SCTP_HMAC_NONE=n \
951 CONFIG_SCTP_HMAC_SHA1=n \
952 CONFIG_SCTP_HMAC_MD5=y \
953 CONFIG_SCTP_COOKIE_HMAC_SHA1=n \
954 CONFIG_SCTP_COOKIE_HMAC_MD5=y \
955 CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE=n \
956 CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1=n \
957 CONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5=y
958 FILES:= $(LINUX_DIR)/net/sctp/sctp.ko
959 AUTOLOAD:= $(call AutoLoad,32,sctp)
960 DEPENDS:=+kmod-lib-crc32c +kmod-crypto-md5 +kmod-crypto-hmac
961 endef
962
963 define KernelPackage/sctp/description
964 Kernel modules for SCTP protocol support
965 endef
966
967 $(eval $(call KernelPackage,sctp))
968
969
970 define KernelPackage/netem
971 SUBMENU:=$(NETWORK_SUPPORT_MENU)
972 TITLE:=Network emulation functionality
973 DEPENDS:=+kmod-sched
974 KCONFIG:=CONFIG_NET_SCH_NETEM
975 FILES:=$(LINUX_DIR)/net/sched/sch_netem.ko
976 AUTOLOAD:=$(call AutoLoad,99,netem)
977 endef
978
979 define KernelPackage/netem/description
980 Kernel modules for emulating the properties of wide area networks
981 endef
982
983 $(eval $(call KernelPackage,netem))
984
985 define KernelPackage/slip
986 SUBMENU:=$(NETWORK_SUPPORT_MENU)
987 DEPENDS:=+kmod-slhc
988 TITLE:=SLIP modules
989 KCONFIG:= \
990 CONFIG_SLIP \
991 CONFIG_SLIP_COMPRESSED=y \
992 CONFIG_SLIP_SMART=y \
993 CONFIG_SLIP_MODE_SLIP6=y
994
995 FILES:= \
996 $(LINUX_DIR)/drivers/net/slip/slip.ko
997 AUTOLOAD:=$(call AutoLoad,30,slip)
998 endef
999
1000 define KernelPackage/slip/description
1001 Kernel modules for SLIP support
1002 endef
1003
1004 $(eval $(call KernelPackage,slip))
1005
1006 define KernelPackage/dnsresolver
1007 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1008 TITLE:=In-kernel DNS Resolver
1009 KCONFIG:= CONFIG_DNS_RESOLVER
1010 FILES:=$(LINUX_DIR)/net/dns_resolver/dns_resolver.ko
1011 AUTOLOAD:=$(call AutoLoad,30,dns_resolver)
1012 endef
1013
1014 $(eval $(call KernelPackage,dnsresolver))
1015
1016 define KernelPackage/rxrpc
1017 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1018 TITLE:=AF_RXRPC support
1019 HIDDEN:=1
1020 KCONFIG:= \
1021 CONFIG_AF_RXRPC \
1022 CONFIG_RXKAD=m \
1023 CONFIG_AF_RXRPC_DEBUG=n
1024 FILES:= \
1025 $(LINUX_DIR)/net/rxrpc/af-rxrpc.ko@lt4.11 \
1026 $(LINUX_DIR)/net/rxrpc/rxrpc.ko@ge4.11 \
1027 $(LINUX_DIR)/net/rxrpc/rxkad.ko@lt4.7
1028 AUTOLOAD:=$(call AutoLoad,30,rxkad@lt4.7 af-rxrpc.ko@lt4.11 rxrpc.ko@ge4.11)
1029 DEPENDS:= +kmod-crypto-manager +kmod-crypto-pcbc +kmod-crypto-fcrypt
1030 endef
1031
1032 define KernelPackage/rxrpc/description
1033 Kernel support for AF_RXRPC; required for AFS client
1034 endef
1035
1036 $(eval $(call KernelPackage,rxrpc))
1037
1038 define KernelPackage/mpls
1039 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1040 TITLE:=MPLS support
1041 DEPENDS:=@!LINUX_3_18 +LINUX_4_19:kmod-iptunnel
1042 KCONFIG:= \
1043 CONFIG_MPLS=y \
1044 CONFIG_LWTUNNEL=y \
1045 CONFIG_LWTUNNEL_BPF=n \
1046 CONFIG_NET_MPLS_GSO=m \
1047 CONFIG_MPLS_ROUTING=m \
1048 CONFIG_MPLS_IPTUNNEL=m
1049 FILES:= \
1050 $(LINUX_DIR)/net/mpls/mpls_gso.ko \
1051 $(LINUX_DIR)/net/mpls/mpls_iptunnel.ko \
1052 $(LINUX_DIR)/net/mpls/mpls_router.ko
1053 AUTOLOAD:=$(call AutoLoad,30,mpls_router mpls_iptunnel mpls_gso)
1054 endef
1055
1056 define KernelPackage/mpls/description
1057 Kernel support for MPLS
1058 endef
1059
1060 $(eval $(call KernelPackage,mpls))
1061
1062 define KernelPackage/9pnet
1063 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1064 TITLE:=Plan 9 Resource Sharing Support (9P2000)
1065 DEPENDS:=@VIRTIO_SUPPORT
1066 KCONFIG:= \
1067 CONFIG_NET_9P \
1068 CONFIG_NET_9P_DEBUG=n \
1069 CONFIG_NET_9P_XEN=n \
1070 CONFIG_NET_9P_VIRTIO
1071 FILES:= \
1072 $(LINUX_DIR)/net/9p/9pnet.ko \
1073 $(LINUX_DIR)/net/9p/9pnet_virtio.ko
1074 AUTOLOAD:=$(call AutoLoad,29,9pnet 9pnet_virtio)
1075 endef
1076
1077 define KernelPackage/9pnet/description
1078 Kernel support support for
1079 Plan 9 resource sharing via the 9P2000 protocol.
1080 endef
1081
1082 $(eval $(call KernelPackage,9pnet))
1083
1084
1085 define KernelPackage/nlmon
1086 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1087 TITLE:=Virtual netlink monitoring device
1088 KCONFIG:=CONFIG_NLMON
1089 FILES:=$(LINUX_DIR)/drivers/net/nlmon.ko
1090 AUTOLOAD:=$(call AutoProbe,nlmon)
1091 endef
1092
1093 define KernelPackage/nlmon/description
1094 Kernel module which adds a monitoring device for netlink.
1095 endef
1096
1097 $(eval $(call KernelPackage,nlmon))
1098
1099
1100 define KernelPackage/mdio
1101 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1102 TITLE:=MDIO (clause 45) PHY support
1103 KCONFIG:=CONFIG_MDIO
1104 HIDDEN:=1
1105 FILES:=$(LINUX_DIR)/drivers/net/mdio.ko
1106 AUTOLOAD:=$(call AutoLoad,32,mdio)
1107 endef
1108
1109 define KernelPackage/mdio/description
1110 Kernel modules for MDIO (clause 45) PHY support
1111 endef
1112
1113 $(eval $(call KernelPackage,mdio))
1114
1115 define KernelPackage/macsec
1116 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1117 TITLE:=IEEE 802.1AE MAC-level encryption (MAC)
1118 DEPENDS:=+kmod-crypto-gcm @!LINUX_3_18
1119 KCONFIG:=CONFIG_MACSEC
1120 FILES:=$(LINUX_DIR)/drivers/net/macsec.ko
1121 AUTOLOAD:=$(call AutoLoad,13,macsec)
1122 endef
1123
1124 define KernelPackage/macsec/description
1125 MACsec is an encryption standard for Ethernet.
1126 endef
1127
1128 $(eval $(call KernelPackage,macsec))