]> git.ipfire.org Git - thirdparty/lldpd.git/commit
netlink: fix reception of large netlink messages 161/head
authorDavid Morel <david.morel@6wind.com>
Wed, 10 Feb 2016 15:10:08 +0000 (16:10 +0100)
committerDavid Morel <david.morel@6wind.com>
Wed, 10 Feb 2016 16:52:58 +0000 (17:52 +0100)
commit85b72fe050abaec0b2c69c48b245594faf3fe3a9
treefeed7fc430eb065e0c462a938b6bdd7012113ddb
parent48eaeeb77b9ea5ef61b179a215ba91b08ced764f
netlink: fix reception of large netlink messages

If received netlink message is bigger than the buffer provided by the
application, netlink message flag will contain the MSG_TRUNC flag. In
this case it is up to the application to allocate a buffer large enough
to receive the full message and to call recv() again.
src/daemon/netlink.c