]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: ignore mDNS multicast packets originated from our host
authorDmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Fri, 2 Dec 2016 09:30:00 +0000 (11:30 +0200)
committerDmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Thu, 19 Jan 2017 09:51:21 +0000 (11:51 +0200)
commitcfb17f45932dc73bb08f52746ca089bb62ef6fcc
tree76eab74b79a5dbc5a0ac9c806f7828cdb10de8a8
parente372a138b20ade9fedd845dfbfc72dfb42eaf16b
resolved: ignore mDNS multicast packets originated from our host

By default all sent multicast packets are looped back to the
sending host. And since the code that adds the mDNS socket to
the mDNS multicast group is the same as for LLMNR I decided
that for now it'd be safer to filter looped back packets in the
application than to switch loopback off. Because I don't know
what would be the implications for LLMNR with loopback switched off.

I suspect that loopback can be disabled for LLMNR safely too and the
function manager_our_packet() is not really needed. But I'd
prefer to do it in another patchset.

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
src/resolve/resolved-mdns.c