package: qca-nss: Added support for qca-nss-drv-l2tpv2
This commit is contained in:
@@ -38,21 +38,21 @@ define KernelPackage/qca-nss-drv-tun6rd/description
|
|||||||
Kernel modules for NSS connection manager - Support for 6rd tunnel
|
Kernel modules for NSS connection manager - Support for 6rd tunnel
|
||||||
endef
|
endef
|
||||||
|
|
||||||
#define KernelPackage/qca-nss-drv-l2tpv2
|
define KernelPackage/qca-nss-drv-l2tpv2
|
||||||
# SECTION:=kernel
|
SECTION:=kernel
|
||||||
# CATEGORY:=Kernel modules
|
CATEGORY:=Kernel modules
|
||||||
# SUBMENU:=Network Devices
|
SUBMENU:=Network Devices
|
||||||
# TITLE:=Kernel driver for NSS (connection manager) - l2tp
|
TITLE:=Kernel driver for NSS (connection manager) - l2tp
|
||||||
# DEPENDS:=+@NSS_DRV_L2TP_ENABLE +kmod-ppp +kmod-l2tp \
|
DEPENDS:=+@NSS_DRV_L2TP_ENABLE +kmod-ppp +kmod-l2tp \
|
||||||
# +PACKAGE_kmod-qca-nss-drv:kmod-qca-nss-drv
|
+PACKAGE_kmod-qca-nss-drv:kmod-qca-nss-drv
|
||||||
# FILES:=$(PKG_BUILD_DIR)/l2tp/l2tpv2/qca-nss-l2tpv2.ko
|
FILES:=$(PKG_BUILD_DIR)/l2tp/l2tpv2/qca-nss-l2tpv2.ko
|
||||||
# KCONFIG:=CONFIG_L2TP=y
|
KCONFIG:=CONFIG_L2TP=y
|
||||||
# AUTOLOAD:=$(call AutoLoad,51,qca-nss-l2tpv2)
|
AUTOLOAD:=$(call AutoLoad,51,qca-nss-l2tpv2)
|
||||||
#endef
|
endef
|
||||||
|
|
||||||
#define KernelPackage/qca-nss-drv-l2tp/description
|
define KernelPackage/qca-nss-drv-l2tp/description
|
||||||
#Kernel modules for NSS connection manager - Support for l2tp tunnel
|
Kernel modules for NSS connection manager - Support for l2tp tunnel
|
||||||
#endef
|
endef
|
||||||
|
|
||||||
define KernelPackage/qca-nss-drv-pptp
|
define KernelPackage/qca-nss-drv-pptp
|
||||||
SECTION:=kernel
|
SECTION:=kernel
|
||||||
@@ -387,10 +387,10 @@ ifneq ($(CONFIG_PACKAGE_kmod-qca-nss-drv-tun6rd),)
|
|||||||
MAKE_OPTS+=tun6rd=m
|
MAKE_OPTS+=tun6rd=m
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#ifneq ($(CONFIG_PACKAGE_kmod-qca-nss-drv-l2tpv2),)
|
ifneq ($(CONFIG_PACKAGE_kmod-qca-nss-drv-l2tpv2),)
|
||||||
#MAKE_OPTS+=l2tpv2=y
|
MAKE_OPTS+=l2tpv2=y
|
||||||
#EXTRA_CFLAGS += -DNSS_L2TPV2_ENABLED
|
EXTRA_CFLAGS += -DNSS_L2TPV2_ENABLED
|
||||||
#endif
|
endif
|
||||||
|
|
||||||
ifneq ($(CONFIG_PACKAGE_kmod-qca-nss-drv-pptp),)
|
ifneq ($(CONFIG_PACKAGE_kmod-qca-nss-drv-pptp),)
|
||||||
MAKE_OPTS+=pptp=y
|
MAKE_OPTS+=pptp=y
|
||||||
@@ -476,7 +476,7 @@ endef
|
|||||||
|
|
||||||
$(eval $(call KernelPackage,qca-nss-drv-profile))
|
$(eval $(call KernelPackage,qca-nss-drv-profile))
|
||||||
$(eval $(call KernelPackage,qca-nss-drv-tun6rd))
|
$(eval $(call KernelPackage,qca-nss-drv-tun6rd))
|
||||||
#$(eval $(call KernelPackage,qca-nss-drv-l2tpv2))
|
$(eval $(call KernelPackage,qca-nss-drv-l2tpv2))
|
||||||
$(eval $(call KernelPackage,qca-nss-drv-pptp))
|
$(eval $(call KernelPackage,qca-nss-drv-pptp))
|
||||||
$(eval $(call KernelPackage,qca-nss-drv-pppoe))
|
$(eval $(call KernelPackage,qca-nss-drv-pppoe))
|
||||||
$(eval $(call KernelPackage,qca-nss-drv-tunipip6))
|
$(eval $(call KernelPackage,qca-nss-drv-tunipip6))
|
||||||
|
|||||||
@@ -20,7 +20,23 @@
|
|||||||
#endif
|
#endif
|
||||||
--- a/l2tp/l2tpv2/nss_connmgr_l2tpv2.c
|
--- a/l2tp/l2tpv2/nss_connmgr_l2tpv2.c
|
||||||
+++ b/l2tp/l2tpv2/nss_connmgr_l2tpv2.c
|
+++ b/l2tp/l2tpv2/nss_connmgr_l2tpv2.c
|
||||||
@@ -954,7 +954,11 @@ int __init nss_connmgr_l2tpv2_init_modul
|
@@ -912,6 +912,7 @@ static struct ctl_table nss_connmgr_l2tp
|
||||||
|
/*
|
||||||
|
* nss_connmgr_l2tpv2_dir
|
||||||
|
*/
|
||||||
|
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 6, 0))
|
||||||
|
static struct ctl_table nss_connmgr_l2tpv2_dir[] = {
|
||||||
|
{
|
||||||
|
.procname = "l2tpv2",
|
||||||
|
@@ -933,6 +934,7 @@ static struct ctl_table nss_connmgr_l2tp
|
||||||
|
{ }
|
||||||
|
};
|
||||||
|
|
||||||
|
+#endif
|
||||||
|
/*
|
||||||
|
* Linux Net device Notifier
|
||||||
|
*/
|
||||||
|
@@ -954,7 +956,11 @@ int __init nss_connmgr_l2tpv2_init_modul
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -65,10 +65,10 @@ config NSS_DRV_IPV6_REASM_ENABLE
|
|||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
prompt "Enable IPV6_REASM"
|
prompt "Enable IPV6_REASM"
|
||||||
#config NSS_DRV_L2TP_ENABLE
|
config NSS_DRV_L2TP_ENABLE
|
||||||
# bool
|
bool
|
||||||
# default n
|
default n
|
||||||
# prompt "Enable L2TP"
|
prompt "Enable L2TP"
|
||||||
#config NSS_DRV_LAG_ENABLE
|
#config NSS_DRV_LAG_ENABLE
|
||||||
# bool
|
# bool
|
||||||
# default n
|
# default n
|
||||||
|
|||||||
Reference in New Issue
Block a user