]> git.ipfire.org Git - thirdparty/systemd.git/commit
ipv4acd/ipv4ll: stop using read() on SOCK_DGRAM sockets 3322/head
authorLennart Poettering <lennart@poettering.net>
Sun, 22 May 2016 12:26:36 +0000 (14:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 22 May 2016 12:26:36 +0000 (14:26 +0200)
commite095f51dd16c530e56d8eb96960c0517be12d9bb
tree6143d02763c9f025babc7848b0b46f6d1db9e4ae
parente78f9587abfe03ae49acb388becb64c8353a6cb2
ipv4acd/ipv4ll: stop using read() on SOCK_DGRAM sockets

This is a follow-up to cf447cb62d01137f4cbd1cd14b83b88823542bbf.

Let's generally follow the rule to not use read() on SOCK_DGRAM sockets, let's
always use recv() on that.

Also, don't abort IPV4ACD logic in case we read a short packet. Simply log and
ignore.
src/libsystemd-network/sd-ipv4acd.c
src/libsystemd-network/test-ipv4ll.c