Thread (7 messages) flat view 7 messages, 4 authors, 2017-09-28

Re: [PATCHv3 iproute2 1/2] lib/libnetlink: re malloc buff if size is not enough

From: Hangbin Liu <hidden>
Date: 2017-09-28 07:13:12

Hi Michal,

On Thu, Sep 21, 2017 at 09:34:20AM +0200, Michal Kubecek wrote:
I will have to check but IIRC it might be possible to use zero length
for the peek to only check the length which could help you to avoid both
the reallocation and copying the same data from kernel to userspace
twice.
Yes, msg with zero buf length also works. I will post a new patch after fix.

Thanks
Hangbin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help