mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
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
)
This commit is contained in:
parent
0625814426
commit
50147d41b9
@ -166,12 +166,7 @@
|
|||||||
#include <netlink/msg.h>
|
#include <netlink/msg.h>
|
||||||
#include <linux/socket.h>
|
#include <linux/socket.h>
|
||||||
|
|
||||||
static size_t default_msg_size;
|
static size_t default_msg_size = 4096;
|
||||||
|
|
||||||
static void __init init_msg_size(void)
|
|
||||||
{
|
|
||||||
default_msg_size = getpagesize();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Attribute Access
|
* @name Attribute Access
|
||||||
|
Loading…
Reference in New Issue
Block a user