1From 0c80f9ead3eb1d938b3e8e68165c91e62db72de3 Mon Sep 17 00:00:00 2001
2From: Damjan Georgievski <gdamjan@gmail.com>
3Date: Wed, 15 Aug 2012 00:54:38 +0200
4Subject: [PATCH] Fix issue: NETLINK: Packet too small or truncated!
5 92!=16!=244
6
7As reported in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514197#22
8
9Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10---
11 src/nlrequest.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/src/nlrequest.c b/src/nlrequest.c
15index 99fd3d0..3a1f794 100644
16--- a/src/nlrequest.c
17+++ b/src/nlrequest.c
18@@ -44,7 +44,7 @@ int netlink_request(int s, struct nlmsghdr *n, int (*callback) (struct nlmsghdr
19
20     for (;;) {
21         int bytes;
22-        char replybuf[2048];
23+        char replybuf[4096];
24         struct nlmsghdr *p = (struct nlmsghdr *) replybuf;
25
26         if ((bytes = recv(s, &replybuf, sizeof(replybuf), 0)) < 0) {
27--
282.11.0
29
30