summaryrefslogtreecommitdiffstats
path: root/src/netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/netlink.c')
-rw-r--r--src/netlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/netlink.c b/src/netlink.c
index e164dd7..92fbf00 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -118,7 +118,8 @@ static int warned = 0;
void nl_resize_socket_buffer(struct nfct_handle *h)
{
- unsigned int s = CONFIG(netlink_buffer_size) * 2;
+ /* sock_setsockopt in net/core/sock.c doubles the size of the buffer */
+ unsigned int s = CONFIG(netlink_buffer_size);
/* already warned that we have reached the maximum buffer size */
if (warned)