diff options
-rw-r--r-- | main/ipsec-tools/75-racoonctl-rcvbuf.patch | 33 | ||||
-rw-r--r-- | main/ipsec-tools/APKBUILD | 4 |
2 files changed, 36 insertions, 1 deletions
diff --git a/main/ipsec-tools/75-racoonctl-rcvbuf.patch b/main/ipsec-tools/75-racoonctl-rcvbuf.patch new file mode 100644 index 0000000000..3a68bfc2ae --- /dev/null +++ b/main/ipsec-tools/75-racoonctl-rcvbuf.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | Index: src/racoon/kmpstat.c | ||
2 | =================================================================== | ||
3 | RCS file: /cvsroot/src/crypto/dist/ipsec-tools/src/racoon/kmpstat.c,v | ||
4 | retrieving revision 1.6 | ||
5 | diff -u -r1.6 kmpstat.c | ||
6 | --- a/src/racoon/kmpstat.c 2 Oct 2007 09:47:45 -0000 1.6 | ||
7 | +++ b/src/racoon/kmpstat.c 14 Oct 2010 12:48:22 -0000 | ||
8 | @@ -99,6 +99,7 @@ | ||
9 | com_init() | ||
10 | { | ||
11 | struct sockaddr_un name; | ||
12 | + int rcvSize; | ||
13 | |||
14 | memset(&name, 0, sizeof(name)); | ||
15 | name.sun_family = AF_UNIX; | ||
16 | @@ -114,6 +115,17 @@ | ||
17 | return -1; | ||
18 | } | ||
19 | |||
20 | + /* set receive buffer size - should be relative large: | ||
21 | + * racoon daemon will try to send all info in one go, if | ||
22 | + * it does not fit we'll miss stuff */ | ||
23 | + rcvSize = 1024 * 1024; | ||
24 | + if (setsockopt(so, SOL_SOCKET, SO_RCVBUF, | ||
25 | + (void*) &rcvSize, sizeof(rcvSize)) < 0) { | ||
26 | + rcvSize = 512 * 1024; | ||
27 | + (void) setsockopt(so, SOL_SOCKET, SO_RCVBUF, | ||
28 | + (void*) &rcvSize, sizeof(rcvSize)); | ||
29 | + } | ||
30 | + | ||
31 | return 0; | ||
32 | } | ||
33 | |||
diff --git a/main/ipsec-tools/APKBUILD b/main/ipsec-tools/APKBUILD index 75ac34839f..dc5fca1b55 100644 --- a/main/ipsec-tools/APKBUILD +++ b/main/ipsec-tools/APKBUILD | |||
@@ -2,7 +2,7 @@ | |||
2 | pkgname=ipsec-tools | 2 | pkgname=ipsec-tools |
3 | pkgver=0.8_alpha20090903 | 3 | pkgver=0.8_alpha20090903 |
4 | _myver=0.8-alpha20090903 | 4 | _myver=0.8-alpha20090903 |
5 | pkgrel=10 | 5 | pkgrel=11 |
6 | pkgdesc="User-space IPsec tools for various IPsec implementations" | 6 | pkgdesc="User-space IPsec tools for various IPsec implementations" |
7 | url="http://ipsec-tools.sourceforge.net/" | 7 | url="http://ipsec-tools.sourceforge.net/" |
8 | license="BSD" | 8 | license="BSD" |
@@ -17,6 +17,7 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$_myver.tar.gz | |||
17 | initial-contact-fix.diff | 17 | initial-contact-fix.diff |
18 | fd-priorities.patch | 18 | fd-priorities.patch |
19 | 70-rcvbuf-size.patch | 19 | 70-rcvbuf-size.patch |
20 | 75-racoonctl-rcvbuf.patch | ||
20 | 90-openssl-oneshot.patch | 21 | 90-openssl-oneshot.patch |
21 | " | 22 | " |
22 | 23 | ||
@@ -66,4 +67,5 @@ baa13d7f0f48955c792f7fcd42a8587a 60-debug-quick.patch | |||
66 | 69e06c5cc3a0c1cc8b10ddc89d1e644b initial-contact-fix.diff | 67 | 69e06c5cc3a0c1cc8b10ddc89d1e644b initial-contact-fix.diff |
67 | c1e8b8dc80ef4b5d79fece52a4865e68 fd-priorities.patch | 68 | c1e8b8dc80ef4b5d79fece52a4865e68 fd-priorities.patch |
68 | f40c78e4ca4b92d2bf74e4fcf3a8d91f 70-rcvbuf-size.patch | 69 | f40c78e4ca4b92d2bf74e4fcf3a8d91f 70-rcvbuf-size.patch |
70 | 2d5d24c4a3684a38584f88720f71c7d6 75-racoonctl-rcvbuf.patch | ||
69 | 11e2c21e443edab17725f74ffeaddb76 90-openssl-oneshot.patch" | 71 | 11e2c21e443edab17725f74ffeaddb76 90-openssl-oneshot.patch" |