Bugzilla – Bug 947140
avahi spams logs
Last modified: 2016-05-11 16:11:05 UTC
Avahi spams logs with messages like this: avahi-daemon[1135]: Invalid response packet from host aaa.bbb.ccc.ddd This is partly due to a Windows 10 bug (so it only happens if you have win10 machine in the same network). see also: https://bugzilla.redhat.com/show_bug.cgi?id=1240711 http://avahi.org/ticket/352 maybe this still needs another patch for win 10.
avahi is part of GNOME also, dont we have rate-limiting for log messages?
sure, but that can't be the solution... # journalctl -u avahi-daemon | grep Invalid | wc -l 119598 see?
btw, the fedora patch fixes it for me: diff -up avahi-0.6.31/avahi-core/server.c.invalid_packet avahi-0.6.31/avahi-core/server.c --- avahi-0.6.31/avahi-core/server.c.invalid_packet 2015-09-22 08:12:58.544588701 -0500 +++ avahi-0.6.31/avahi-core/server.c 2015-09-22 08:13:39.743862403 -0500 @@ -972,11 +972,9 @@ static void dispatch_packet(AvahiServer return; } - if (avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_QDCOUNT) != 0 || - avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) == 0 || - avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_NSCOUNT) != 0) { + if (avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) == 0) { - avahi_log_warn("Invalid response packet from host %s.", avahi_address_snprint(t, sizeof(t), src_address)); + avahi_log_debug("Invalid response packet from host %s.", avahi_address_snprint(t, sizeof(t), src_address)); return; }
sr#337127 addresses this issue: changes files: -------------- --- avahi.changes +++ avahi.changes @@ -1,0 +2,6 @@ +Wed Oct 7 20:34:24 UTC 2015 - mgorse@suse.com + +- Add avahi-0.6.31-invalid-packet.patch: do not spam logs for + invalid packets (boo#947140 bsc#948277). + +-------------------------------------------------------------------
Would it be possible to release a patched version of avahi for openSuSE 13.2? The problem exists there as well. Thank you very much, Achim
Submitted to Leap 42.1 (doh.. that was missed) and 13.2 342646 State:review By:dimstar When:2015-11-06T09:14:27 maintenance_incident: openSUSE:Factory/avahi@c899df5b01f6d61a84db35dcf5f55d48 -> openSUSE:Maintenance (release in openSUSE:Leap:42.1:Update) Review by User is new: maintbot Descr: Release this as a maintenance update - the fix was forgotten in Leap 42.1 (especially the log spam fix) 342647 State:review By:dimstar When:2015-11-06T09:15:28 maintenance_incident: openSUSE:Factory/avahi@c899df5b01f6d61a84db35dcf5f55d48 -> openSUSE:Maintenance (release in openSUSE:13.2:Update) Review by User is new: maintbot Descr: Release this as a maintenance update - The issues are present also in 13.2
SUSE-RU-2015:1974-1: An update that has two recommended fixes can now be installed. Category: recommended (low) Bug References: 947140,948277 CVE References: Sources used: SUSE Linux Enterprise Workstation Extension 12 (src): avahi-glib2-0.6.31-22.4 SUSE Linux Enterprise Software Development Kit 12 (src): avahi-0.6.31-22.4, avahi-glib2-0.6.31-22.4 SUSE Linux Enterprise Server 12 (src): avahi-0.6.31-22.4, avahi-glib2-0.6.31-22.4 SUSE Linux Enterprise Desktop 12 (src): avahi-0.6.31-22.4, avahi-glib2-0.6.31-22.4
openSUSE-RU-2015:1999-1: An update that has three recommended fixes can now be installed. Category: recommended (moderate) Bug References: 914298,947140,948277 CVE References: Sources used: openSUSE Leap 42.1 (src): avahi-0.6.31-26.1, avahi-glib2-0.6.31-26.1, avahi-mono-0.6.31-26.1, avahi-qt4-0.6.31-26.1 openSUSE 13.2 (src): avahi-0.6.31-23.3.1, avahi-glib2-0.6.31-23.3.1, avahi-mono-0.6.31-23.3.1, avahi-qt4-0.6.31-23.3.1
SUSE-RU-2015:1974-2: An update that has two recommended fixes can now be installed. Category: recommended (low) Bug References: 947140,948277 CVE References: Sources used: SUSE Linux Enterprise Workstation Extension 12-SP1 (src): avahi-glib2-0.6.31-23.1 SUSE Linux Enterprise Software Development Kit 12-SP1 (src): avahi-0.6.31-23.1, avahi-glib2-0.6.31-23.1 SUSE Linux Enterprise Server 12-SP1 (src): avahi-0.6.31-23.1, avahi-glib2-0.6.31-23.1 SUSE Linux Enterprise Desktop 12-SP1 (src): avahi-0.6.31-23.1, avahi-glib2-0.6.31-23.1
SUSE-RU-2016:1280-1: An update that has two recommended fixes can now be installed. Category: recommended (low) Bug References: 941761,947140 CVE References: Sources used: SUSE Linux Enterprise Software Development Kit 11-SP4 (src): avahi-0.6.23-11.34.3, avahi-glib2-0.6.23-13.34.8, avahi-mono-0.6.23-11.34.6 SUSE Linux Enterprise Server 11-SP4 (src): avahi-0.6.23-11.34.3, avahi-glib2-0.6.23-13.34.8 SUSE Linux Enterprise Debuginfo 11-SP4 (src): avahi-0.6.23-11.34.3, avahi-glib2-0.6.23-13.34.8