mdlayher / netlink

Package netlink provides low-level access to Linux netlink sockets (AF_NETLINK). MIT Licensed.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

netlink: add a version of Conn.Receive that doesn't allocate its own buffers

mdlayher opened this issue · comments

This could speed things up significantly for big payloads, and then we can also get rid of the peek/loop/allocate logic and rely on the caller to provide a big enough buffer to read out all the available messages.