commit 025a4aef1a05cf523fbdf98ed71fd2e7b902d7fd
parent cb07e71ba4374e1c2766b391ed259e8c73ae41fe
Author: Natanael Copa <ncopa@alpinelinux.org>
Date: Thu, 12 Mar 2015 21:44:57 +0100
nldev: set kernel buffer to 16kb
Kernel will not send bigger than 16kb anyway so 128MB is a bit overkill.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nldev.c b/nldev.c
@@ -161,7 +161,7 @@ init_netlink_socket(void)
if (fd < 0)
edie("socket");
- slen = 128*1024*1024;
+ slen = 16*1024;
if (setsockopt(fd, SOL_SOCKET, SO_RCVBUFFORCE, &slen,
sizeof(slen)) < 0) {
edie("setsockopt");