[OpenWrt-Devel] [PATCH v2 1/3] kernel/netsupport: add xfrmi interface support

Hans Dedecker dedeckeh at gmail.com
Sat Jun 8 04:09:47 EDT 2019


On Fri, Jun 7, 2019 at 12:46 AM André Valentin <avalentin at marcant.net> wrote:
>
> Add support for xfrm interfaces in kernel. XFRM interfaces are used by
> the IPsec stack for tunneling.
> XFRM interfaces are available since linux 4.19.
>
> ---
>  package/kernel/linux/modules/netsupport.mk | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk
> index 1b6247643f..385c1c65ec 100644
> --- a/package/kernel/linux/modules/netsupport.mk
> +++ b/package/kernel/linux/modules/netsupport.mk
> @@ -380,6 +380,22 @@ endef
>
>  $(eval $(call KernelPackage,ip6-vti))
>
> +
> +define KernelPackage/xfrm-interface
> +  SUBMENU:=$(NETWORK_SUPPORT_MENU)
> +  TITLE:=IPsec XFRM Interface
> +  DEPENDS:=+kmod-ipsec4 +kmod-ipsec6 @LINUX_4_19
As you mention this is supported since 4.19; it's more future proof
using @!LINUX_4_14

Hans
> +  KCONFIG:=CONFIG_XFRM_INTERFACE
> +  FILES:=$(LINUX_DIR)/net/xfrm/xfrm_interface.ko
> +  AUTOLOAD:=$(call AutoLoad,33,xfrm_interface)
> +endef
> +
> +define KernelPackage/xfrm-interface/description
> + Kernel module for XFRM interface support
> +endef
> +
> +$(eval $(call KernelPackage,xfrm-interface))
> +
>
>  define KernelPackage/iptunnel4
>    SUBMENU:=$(NETWORK_SUPPORT_MENU)
> --
> 2.11.0
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list