aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-12-15 16:43:03 +0100
committerTobias Brunner <tobias@strongswan.org>2015-03-06 16:45:22 +0100
commit96e6130537df9d0388e73ba35e1984310b3a8653 (patch)
tree3ed3eff42fa6be069c53f80dc3cfa36c7f73467a /conf
parent3fcb59b62a24bca6ec7d9dececff911475d232c0 (diff)
downloadstrongswan-96e6130537df9d0388e73ba35e1984310b3a8653.tar.bz2
strongswan-96e6130537df9d0388e73ba35e1984310b3a8653.tar.xz
kernel-pfkey: Add option to set receive buffer size of event socket
If many requests are sent to the kernel the events generated by these requests may fill the receive buffer before the daemon is able to read these messages. Fixes #783.
Diffstat (limited to 'conf')
-rw-r--r--conf/Makefile.am1
-rw-r--r--conf/plugins/kernel-pfkey.opt7
2 files changed, 8 insertions, 0 deletions
diff --git a/conf/Makefile.am b/conf/Makefile.am
index c6f8741cd..f10af25a2 100644
--- a/conf/Makefile.am
+++ b/conf/Makefile.am
@@ -64,6 +64,7 @@ plugins = \
plugins/led.opt \
plugins/kernel-libipsec.opt \
plugins/kernel-netlink.opt \
+ plugins/kernel-pfkey.opt \
plugins/kernel-pfroute.opt \
plugins/load-tester.opt \
plugins/lookip.opt \
diff --git a/conf/plugins/kernel-pfkey.opt b/conf/plugins/kernel-pfkey.opt
new file mode 100644
index 000000000..ec05215d3
--- /dev/null
+++ b/conf/plugins/kernel-pfkey.opt
@@ -0,0 +1,7 @@
+charon.plugins.kernel-pfkey.events_buffer_size = 0
+ Size of the receive buffer for the event socket (0 for default size).
+
+ Size of the receive buffer for the event socket (0 for default size).
+ Because events are received asynchronously installing e.g. lots of policies
+ may require a larger buffer than the default on certain platforms in order
+ to receive all messages.