File: nlrequest.c_packet-too-small_fix

package info (click to toggle)
ifmetric 0.3-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 564 kB
  • sloc: sh: 839; ansic: 322; makefile: 45
file content (16 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix "NETLINK: Packet too small or truncated!" error.
Author: Benedek László <benedekl@gmail.com>
Bug-Debian: http://bugs.debian.org/514197
Index: ifmetric/src/nlrequest.c
===================================================================
--- ifmetric.orig/src/nlrequest.c	2013-09-05 14:10:42.000000000 -0500
+++ ifmetric/src/nlrequest.c	2013-09-05 14:19:06.573420862 -0500
@@ -44,7 +44,7 @@
 
     for (;;) {
         int bytes;
-        char replybuf[2048];
+        char replybuf[4096];
         struct nlmsghdr *p = (struct nlmsghdr *) replybuf;
         
         if ((bytes = recv(s, &replybuf, sizeof(replybuf), 0)) < 0) {