[OpenWrt-Devel] [PATCH] modules: package l2tp_ip6.ko in kmod-l2tp-ip6

Daniel Golle daniel at makrotopia.org
Thu Apr 30 19:40:17 EDT 2015

The L2TPv3-over-IPv6 kernel module wasn't included in any package.
Create a new package and make it depend on kmod-ipv6 and kmod-l2tp.
root at OpenWrt:~# modinfo /lib/modules/3.18.11/l2tp_ip6.ko 
module:		/lib/modules/3.18.11/l2tp_ip6.ko
license:	GPL
depends:	ipv6,l2tp_core

The module doesn't have a Kconfig symbol of it's own and is being
built if both, CONFIG_L2TP_IP and CONFIG_IPV6 are set, see


Signed-off-by: Daniel Golle <daniel at makrotopia.org>
 package/kernel/linux/modules/netsupport.mk | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk
index 547e429..799e2dd 100644
--- a/package/kernel/linux/modules/netsupport.mk
+++ b/package/kernel/linux/modules/netsupport.mk
@@ -908,6 +908,21 @@ endef
 $(eval $(call KernelPackage,l2tp-ip))
+define KernelPackage/l2tp-ip6
+  TITLE:=L2TP IP6 encapsulation for L2TPv3
+  DEPENDS:=+kmod-l2tp +kmod-ipv6
+  FILES:=$(LINUX_DIR)/net/l2tp/l2tp_ip6.ko
+  AUTOLOAD:=$(call AutoLoad,33,l2tp_ip6)
+define KernelPackage/l2tp-ip6/description
+ Kernel modules for L2TP IP6 encapsulation for L2TPv3
+$(eval $(call KernelPackage,l2tp-ip6))
 define KernelPackage/sctp
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list