Branch: refs/heads/no-root
Home:
https://github.com/kronosnet/kronosnet
Commit: f57aef9e1c20962f61fb168c070212c88690832c
https://github.com/kronosnet/kronosnet/commit/f57aef9e1c20962f61fb168c07021…
Author: Ferenc Wágner <wferi(a)debian.org>
Date: 2017-11-25 (Sat, 25 Nov 2017)
Changed paths:
M libknet/tests/test-common.c
M libknet/transport_common.c
Log Message:
-----------
Don't require root privileges unless necessary
On Linux, if /proc/sys/net/core/[rw]mem_max are set to at least
8388608 (KNET_RING_RCVBUFF), setting the socket buffer sizes
doesn't require root privileges.
FreeBSD uses the kern.ipc.maxsockbuf sysctl MIB variable for
capping user buffer requests.
Linux doubles the requested amount for administrative overhead,
but FreeBSD does not, so we can't be too strict when checking
the results.