libnl/include
Thomas Egerer bbdcaea9a7 lib: return error if an incomplete message was read
If recvmsg indicates that the message read was truncated libnl retries
to read the complete message after increasing the message buffer. This
only works if the message flags MSG_PEEK | MSG_TRUNC are set. If
NL_MSG_PEEK is not enabled on the nl_sock structure, flags are left
empty and the rest of the truncated message is discarded, hence a
subsequent recvmsg returns the next message (in case of a multipart
message, the NLMSG_DONE) is read and returned.
This patch aborts message processing if the message was truncated and
the NL_MSG_PEEK flags was not activated for the nl_sock structure.

http://lists.infradead.org/pipermail/libnl/2015-June/001888.html

[thaller@redhat.com: add NL_CAPABILITY_NL_RECV_FAIL_TRUNK_NO_PEEK]

Signed-off-by: Thomas Egerer <hakke_007@gmx.de>
Signed-off-by: Thomas Haller <thaller@redhat.com>
2015-06-05 08:40:02 +02:00
..
linux-private/linux utils: update link layer protocol translations 2015-06-04 23:06:09 +02:00
netlink lib: return error if an incomplete message was read 2015-06-05 08:40:02 +02:00
netlink-private neigh: add support for NDA_VLAN nl attribute 2015-03-23 09:27:23 +01:00
Makefile.am route/act: add skbedit action 2015-02-02 18:16:11 +01:00