blob: 15b3103334af6bb019f7ce0d7b675e1b0c47ec25 [file] [log] [blame]
Brad Bishop0f291cc2019-09-01 15:16:57 -04001Description: Fix "NETLINK: Packet too small or truncated!" error.
2Author: Benedek László <benedekl@gmail.com>
3Bug-Debian: http://bugs.debian.org/514197
4Index: ifmetric/src/nlrequest.c
5===================================================================
6--- ifmetric.orig/src/nlrequest.c 2013-09-05 14:10:42.000000000 -0500
7+++ ifmetric/src/nlrequest.c 2013-09-05 14:19:06.573420862 -0500
8@@ -44,7 +44,7 @@
9
10 for (;;) {
11 int bytes;
12- char replybuf[2048];
13+ char replybuf[4096];
14 struct nlmsghdr *p = (struct nlmsghdr *) replybuf;
15
16 if ((bytes = recv(s, &replybuf, sizeof(replybuf), 0)) < 0) {