resolved: ignore our own LLMNR packets, the same way we ignore mDNS packets already

Let's minimize our traffic a bit. And for local names we bypass the
packet generation anyway.
This commit is contained in:
Lennart Poettering 2017-12-06 12:45:39 +01:00
parent f1b1a5c4ca
commit 6cae1ebe19
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ static int on_llmnr_packet(sd_event_source *s, int fd, uint32_t revents, void *u
if (r <= 0)
return r;
if (manager_our_packet(m, p))
return 0;
scope = manager_find_scope(m, p);
if (!scope) {
log_debug("Got LLMNR UDP packet on unknown scope. Ignoring.");