chiark / gitweb /
sd-rtnl: improve detection of broadcast messages
authorTom Gundersen <teg@jklm.no>
Fri, 13 Mar 2015 15:12:57 +0000 (16:12 +0100)
committerTom Gundersen <teg@jklm.no>
Fri, 13 Mar 2015 15:12:57 +0000 (16:12 +0100)
commit3f42446d286a12292f1693d5cf9cb3ec3844e1a4
treec0eda6f1a12d051bbd6c079518c838aba09326b6
parent913b0eef1a01e0c78f0453b0174e75d5caae1023
sd-rtnl: improve detection of broadcast messages

Do not rely on nl_pid == 0, but check the groups instead. We currently avoid using
nl_pid == 0 for unicast anyway, so this should be redundant, but let's try to be
correct.
src/libsystemd/sd-rtnl/rtnl-internal.h
src/libsystemd/sd-rtnl/rtnl-message.c
src/libsystemd/sd-rtnl/sd-rtnl.c