diff options
author | Timo Teräs <timo.teras@iki.fi> | 2010-10-29 15:19:22 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2010-10-29 15:19:22 +0300 |
commit | 25dcef4ae98946f997edc9abfc92b8cba93d5d8a (patch) | |
tree | cac1fc23d5849e92d843710522403f4d462a0379 /main/ipsec-tools/70-rcvbuf-size.patch | |
parent | 2ecaffa7b438d977c163eac6885f089971533279 (diff) | |
download | aports-25dcef4ae98946f997edc9abfc92b8cba93d5d8a.tar.bz2 aports-25dcef4ae98946f997edc9abfc92b8cba93d5d8a.tar.xz |
main/ipsec-tools: two new fixes
* update adminport to work with huge replies
* defer handling of DH calculations for isakmp identity reponse
(this helps to handle things in right order if we are getting
multiple simultaneous connection requests; this also makes
the previous receive buffer size change mostly irrelevant)
Diffstat (limited to 'main/ipsec-tools/70-rcvbuf-size.patch')
-rw-r--r-- | main/ipsec-tools/70-rcvbuf-size.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/main/ipsec-tools/70-rcvbuf-size.patch b/main/ipsec-tools/70-rcvbuf-size.patch deleted file mode 100644 index 34e295decf..0000000000 --- a/main/ipsec-tools/70-rcvbuf-size.patch +++ /dev/null @@ -1,33 +0,0 @@ -Index: src/racoon/isakmp.c -=================================================================== -RCS file: /cvsroot/src/crypto/dist/ipsec-tools/src/racoon/isakmp.c,v -retrieving revision 1.60 -diff -u -r1.60 isakmp.c ---- a/src/racoon/isakmp.c 3 Sep 2009 09:29:07 -0000 1.60 -+++ b/src/racoon/isakmp.c 20 Aug 2010 11:59:20 -0000 -@@ -1579,6 +1579,7 @@ - #ifdef ENABLE_NATT - int option = -1; - #endif -+ int rcvSize = 16384; - - /* warn if wildcard address - should we forbid this? */ - switch (addr->sa_family) { -@@ -1706,6 +1707,17 @@ - goto err; - } - -+ /* set receive buffer size - shouldn't be too large otherwise -+ * we can acommodate too long backbuffer of packets and not -+ * able to handle any packets in real time */ -+ if (setsockopt(fd, SOL_SOCKET, SO_RCVBUF, -+ (void*) &rcvSize, sizeof(rcvSize)) < 0) { -+ plog(LLV_ERROR, LOCATION, NULL, -+ "failed to set SO_RCVBUF size (%s).\n", -+ strerror(errno)); -+ /* soft-error, continue even if this failed */ -+ } -+ - if (setsockopt_bypass(fd, addr->sa_family) < 0) - goto err; - |