2
0

netsupport.mk 29 KB

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