libnl-tiny: use fixed message size instead of using the page size

Simplifies the code and reduces size

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit d5bcd0240a)
lede-17.01
Felix Fietkau 2017-11-09 14:39:48 +01:00 committed by Jo-Philipp Wich
parent 0625814426
commit 50147d41b9
1 changed files with 1 additions and 6 deletions

View File

@ -166,12 +166,7 @@
#include <netlink/msg.h>
#include <linux/socket.h>
static size_t default_msg_size;
static void __init init_msg_size(void)
{
default_msg_size = getpagesize();
}
static size_t default_msg_size = 4096;
/**
* @name Attribute Access