[packages] strongswan: upgrade to 5.1.1
Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/packages@39377 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
28
net/strongswan/patches/201-kmodloader.patch
Normal file
28
net/strongswan/patches/201-kmodloader.patch
Normal file
@ -0,0 +1,28 @@
|
||||
--- a/src/starter/netkey.c
|
||||
+++ b/src/starter/netkey.c
|
||||
@@ -31,7 +31,7 @@ bool starter_netkey_init(void)
|
||||
/* af_key module makes the netkey proc interface visible */
|
||||
if (stat(PROC_MODULES, &stb) == 0)
|
||||
{
|
||||
- ignore_result(system("modprobe -qv af_key"));
|
||||
+ ignore_result(system("modprobe af_key 2>&1 >/dev/null"));
|
||||
}
|
||||
|
||||
/* now test again */
|
||||
@@ -45,11 +45,11 @@ bool starter_netkey_init(void)
|
||||
/* make sure that all required IPsec modules are loaded */
|
||||
if (stat(PROC_MODULES, &stb) == 0)
|
||||
{
|
||||
- ignore_result(system("modprobe -qv ah4"));
|
||||
- ignore_result(system("modprobe -qv esp4"));
|
||||
- ignore_result(system("modprobe -qv ipcomp"));
|
||||
- ignore_result(system("modprobe -qv xfrm4_tunnel"));
|
||||
- ignore_result(system("modprobe -qv xfrm_user"));
|
||||
+ ignore_result(system("modprobe ah4 2>&1 >/dev/null"));
|
||||
+ ignore_result(system("modprobe esp4 2>&1 >/dev/null"));
|
||||
+ ignore_result(system("modprobe ipcomp 2>&1 >/dev/null"));
|
||||
+ ignore_result(system("modprobe xfrm4_tunnel 2>&1 >/dev/null"));
|
||||
+ ignore_result(system("modprobe xfrm_user 2>&1 >/dev/null"));
|
||||
}
|
||||
|
||||
DBG2(DBG_APP, "found netkey IPsec stack");
|
Reference in New Issue
Block a user