No description
Find a file
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
.travis travis-ci: run make check in travis build 2014-08-26 14:15:36 +02:00
doc libnl-3.2.26 release 2015-03-30 13:17:17 +02:00
etc pktloc: fix typo for tcp.flag.syn 2015-02-17 15:26:15 +01:00
include lib: return error if an incomplete message was read 2015-06-05 08:40:02 +02:00
lib lib: return error if an incomplete message was read 2015-06-05 08:40:02 +02:00
m4 doc: Check documentation generation requirements with autoconf 2012-05-09 10:06:24 +02:00
man genl: Update genl-ctrl-list(8) 2012-06-01 13:10:03 +02:00
python python: genl: capi: add genlmsg_hdr() to capi 2015-05-12 13:26:15 +02:00
src build: extend configure option --enable-cli and install all cli programs 2015-03-18 15:36:02 +01:00
tests route/act: add a test case for skbedit action 2015-02-02 18:16:18 +01:00
.gitignore build: add individual linker version scripts for shared libraries 2015-02-02 17:28:06 +01:00
.indent.pro style: add .indent.pro file for GNU indent 2014-07-27 10:57:36 +02:00
.travis.yml build: Add continuous integration support via travis-ci 2014-08-26 12:41:38 +02:00
autogen.sh build: let autogen.sh script change into top source directory 2014-07-07 11:12:38 +02:00
ChangeLog libnl 3.2.10 2012-06-06 11:43:53 +02:00
configure.ac libnl-3.2.26 release 2015-03-30 13:17:17 +02:00
COPYING Update COPYING to fix FSF address 2012-01-17 12:38:37 +01:00
libnl-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-3.sym build: revert moving unstable symbols from libnl_3 linker section 2015-03-09 17:18:45 +01:00
libnl-cli-3.0.pc.in Add libnl-cli-3.0 to pkg-config tool 2011-10-10 11:39:24 +02:00
libnl-cli-3.sym build: don't export internal symbols 2015-02-02 17:28:06 +01:00
libnl-genl-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-genl-3.sym build/trivial: reorder symbols in linker version scripts and add comment 2015-03-04 17:41:45 +01:00
libnl-idiag-3.0.pc.in Add support for inet diag Netlink protocol. 2013-07-19 02:06:21 -07:00
libnl-idiag-3.sym build/trivial: reorder symbols in linker version scripts and add comment 2015-03-04 17:41:45 +01:00
libnl-nf-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-nf-3.sym build/trivial: reorder symbols in linker version scripts and add comment 2015-03-04 17:41:45 +01:00
libnl-route-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-route-3.sym neigh: add support for NDA_VLAN nl attribute 2015-03-23 09:27:23 +01:00
libnl-xfrm-3.0.pc.in xfrm: add xfrm support 2014-07-20 18:14:46 +02:00
libnl-xfrm-3.sym build: don't export internal symbols 2015-02-02 17:28:06 +01:00
Makefile.am build: add linker scripts for libnl-cli-3.so library 2015-02-02 17:28:06 +01:00