projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1b1a5c
)
resolved: ignore our own LLMNR packets, the same way we ignore mDNS packets already
author
Lennart Poettering
<lennart@poettering.net>
Wed, 6 Dec 2017 11:45:39 +0000
(12:45 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 6 Dec 2017 11:45:39 +0000
(12:45 +0100)
Let's minimize our traffic a bit. And for local names we bypass the
packet generation anyway.
src/resolve/resolved-llmnr.c
patch
|
blob
|
history
diff --git
a/src/resolve/resolved-llmnr.c
b/src/resolve/resolved-llmnr.c
index
3e6e8b9
..
59499c9
100644
(file)
--- a/
src/resolve/resolved-llmnr.c
+++ b/
src/resolve/resolved-llmnr.c
@@
-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.");