]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/strongswan-5.3.0-stroke-Increase-stroke-buffer-size-to-8k.patch
strongswan: Increase stroke buffer size to 8k
[ipfire-2.x.git] / src / patches / strongswan-5.3.0-stroke-Increase-stroke-buffer-size-to-8k.patch
1 From 4b59d129fd1026bab37256af0df9ae7ace39e7ba Mon Sep 17 00:00:00 2001
2 From: Michael Tremer <michael.tremer@ipfire.org>
3 Date: Mon, 27 Apr 2015 18:49:45 +0200
4 Subject: [PATCH] stroke: Increase stroke buffer size to 8k
5
6 Complicated connections can have lots of arguments
7 for the ike= and esp= directives in the ipsec.conf
8 configuration file. strongSwan wouldn't import those
9 because the size of the message that is send from
10 stroke to charon exceeded the limit of 4k.
11
12 This patch increases the size of the buffer that
13 can be passed to charon to 8k which should be enough
14 even for connections with longer configurations.
15 ---
16 src/stroke/stroke_msg.h | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/src/stroke/stroke_msg.h b/src/stroke/stroke_msg.h
20 index c2b923f6db9a..c391efa00105 100644
21 --- a/src/stroke/stroke_msg.h
22 +++ b/src/stroke/stroke_msg.h
23 @@ -32,7 +32,7 @@
24 */
25 #define STROKE_SOCKET IPSEC_PIDDIR "/charon.ctl"
26
27 -#define STROKE_BUF_LEN 4096
28 +#define STROKE_BUF_LEN 8192
29
30 typedef enum list_flag_t list_flag_t;
31
32 --
33 2.1.0
34