Message ID | 1385630829-9065-2-git-send-email-dore@madsdore.dk |
---|---|
State | Accepted |
Delegated to: | Esben Haabendal |
Headers | show |
Mads Doré Hansen <dore@madsdore.dk> writes: > --- > recipes/ifplugd/ifplugd/nlapi_buffer.patch | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > create mode 100644 recipes/ifplugd/ifplugd/nlapi_buffer.patch > > diff --git a/recipes/ifplugd/ifplugd/nlapi_buffer.patch b/recipes/ifplugd/ifplugd/nlapi_buffer.patch > new file mode 100644 > index 0000000..d58d312 > --- /dev/null > +++ b/recipes/ifplugd/ifplugd/nlapi_buffer.patch > @@ -0,0 +1,12 @@ > +diff -urN ifplugd-0.28.orig/src/nlapi.c ifplugd-0.28/src/nlapi.c > +--- ifplugd-0.28.orig/src/nlapi.c 2013-11-27 14:57:53.810265321 +0100 > ++++ ifplugd-0.28/src/nlapi.c 2013-11-27 14:58:28.506266147 +0100 > +@@ -71,7 +71,7 @@ > + > + for (;;) { > + int bytes; > +- char replybuf[1024]; > ++ char replybuf[4096]; > + struct nlmsghdr *p = (struct nlmsghdr *) replybuf; > + > + if ((bytes = recv(nlapi_fd, &replybuf, sizeof(replybuf), block ? 0 : MSG_DONTWAIT)) < 0) { Merged to master, together with the previous patch. /Esben
diff --git a/recipes/ifplugd/ifplugd/nlapi_buffer.patch b/recipes/ifplugd/ifplugd/nlapi_buffer.patch new file mode 100644 index 0000000..d58d312 --- /dev/null +++ b/recipes/ifplugd/ifplugd/nlapi_buffer.patch @@ -0,0 +1,12 @@ +diff -urN ifplugd-0.28.orig/src/nlapi.c ifplugd-0.28/src/nlapi.c +--- ifplugd-0.28.orig/src/nlapi.c 2013-11-27 14:57:53.810265321 +0100 ++++ ifplugd-0.28/src/nlapi.c 2013-11-27 14:58:28.506266147 +0100 +@@ -71,7 +71,7 @@ + + for (;;) { + int bytes; +- char replybuf[1024]; ++ char replybuf[4096]; + struct nlmsghdr *p = (struct nlmsghdr *) replybuf; + + if ((bytes = recv(nlapi_fd, &replybuf, sizeof(replybuf), block ? 0 : MSG_DONTWAIT)) < 0) {