aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-07-16 11:50:22 +0200
committerTobias Brunner <tobias@strongswan.org>2015-08-04 14:15:19 +0200
commit197de6e66b7a187acdddba52b33d531e312851cb (patch)
tree6763868a00628eccf830f9212c085aeb7f2eddb4 /conf
parenta6896b61496448d4e27e47d3979ea0031ca4bf9d (diff)
downloadstrongswan-197de6e66b7a187acdddba52b33d531e312851cb.tar.bz2
strongswan-197de6e66b7a187acdddba52b33d531e312851cb.tar.xz
kernel-netlink: Use PAGE_SIZE as default size for the netlink receive buffer
The kernel uses NLMSG_GOODSIZE as default buffer size, which defaults to the PAGE_SIZE if it is lower than 8192 or to that value otherwise. In some cases (e.g. for dump messages) the kernel might use up to 16k for messages, which might require increasing this value.
Diffstat (limited to 'conf')
-rw-r--r--conf/plugins/kernel-netlink.opt2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/plugins/kernel-netlink.opt b/conf/plugins/kernel-netlink.opt
index 4338a5fbd..6adefd8de 100644
--- a/conf/plugins/kernel-netlink.opt
+++ b/conf/plugins/kernel-netlink.opt
@@ -1,4 +1,4 @@
-charon.plugins.kernel-netlink.buflen = 4096
+charon.plugins.kernel-netlink.buflen = <min(PAGE_SIZE, 8192)>
Buffer size for received Netlink messages.
charon.plugins.kernel-netlink.fwmark =