kernel-netlink: Increase the default receive buffer size
Also simplify how we try to exceed the system-wide maximum. We basically just try to force the value and simply fall back to the regular call. The kernel actually won't let the latter fail if the value is too big, it just caps it at the internal maximum.
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
charon.plugins.kernel-netlink.buflen = <min(PAGE_SIZE, 8192)>
|
||||
Buffer size for received Netlink messages.
|
||||
|
||||
charon.plugins.kernel-netlink.force_receive_buffer_size = no
|
||||
Force maximum Netlink receive buffer on Netlink socket.
|
||||
|
||||
If the maximum Netlink socket receive buffer in bytes set by
|
||||
_receive_buffer_size_ exceeds the system-wide maximum from
|
||||
/proc/sys/net/core/rmem_max, this option can be used to override the limit.
|
||||
Enabling this option requires special privileges (CAP_NET_ADMIN).
|
||||
|
||||
charon.plugins.kernel-netlink.fwmark =
|
||||
Firewall mark to set on the routing rule that directs traffic to our routing
|
||||
table.
|
||||
@@ -74,14 +66,16 @@ charon.plugins.kernel-netlink.process_rules = no
|
||||
currently only useful if the kernel based route lookup is used (i.e. if
|
||||
route installation is disabled or an inverted fwmark match is configured).
|
||||
|
||||
charon.plugins.kernel-netlink.receive_buffer_size = 0
|
||||
charon.plugins.kernel-netlink.receive_buffer_size = 8388608
|
||||
Maximum Netlink socket receive buffer in bytes.
|
||||
|
||||
Maximum Netlink socket receive buffer in bytes. This value controls how many
|
||||
bytes of Netlink messages can be received on a Netlink socket. The default
|
||||
value is set by /proc/sys/net/core/rmem_default. The specified value cannot
|
||||
exceed the system-wide maximum from /proc/sys/net/core/rmem_max, unless
|
||||
_force_receive_buffer_size_ is enabled.
|
||||
bytes of Netlink messages can be queued to a Netlink socket. If set to 0,
|
||||
the default from /proc/sys/net/core/rmem_default will apply. Note that the
|
||||
kernel doubles the configured value to account for overhead. To exceed the
|
||||
system-wide maximum from /proc/sys/net/core/rmem_max, special privileges
|
||||
(CAP_NET_ADMIN) are necessary, otherwise, the kernel silently caps the
|
||||
value.
|
||||
|
||||
charon.plugins.kernel-netlink.roam_events = yes
|
||||
Whether to trigger roam events when interfaces, addresses or routes change.
|
||||
|
||||
Reference in New Issue
Block a user