treat "Invalid response packet from host" as avahi_log_debug (#1240711)

This commit is contained in:
Rex Dieter 2015-09-22 08:25:33 -05:00
parent d450c423de
commit c4f24b388a
2 changed files with 11 additions and 5 deletions

View File

@ -1,7 +1,7 @@
diff -up avahi-0.6.31/avahi-core/server.c.invalid_packet avahi-0.6.31/avahi-core/server.c 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-17 10:36:58.286843110 -0500 --- 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-17 10:38:46.973153235 -0500 +++ avahi-0.6.31/avahi-core/server.c 2015-09-22 08:13:39.743862403 -0500
@@ -972,9 +972,7 @@ static void dispatch_packet(AvahiServer @@ -972,11 +972,9 @@ static void dispatch_packet(AvahiServer
return; return;
} }
@ -10,5 +10,8 @@ diff -up avahi-0.6.31/avahi-core/server.c.invalid_packet avahi-0.6.31/avahi-core
- avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_NSCOUNT) != 0) { - avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_NSCOUNT) != 0) {
+ if (avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) == 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_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; return;
}

View File

@ -18,7 +18,7 @@
Name: avahi Name: avahi
Version: 0.6.31 Version: 0.6.31
Release: 41%{?dist} Release: 42%{?dist}
Summary: Local network service discovery Summary: Local network service discovery
License: LGPLv2+ License: LGPLv2+
URL: http://avahi.org URL: http://avahi.org
@ -705,6 +705,9 @@ exit 0
%{python3_sitelib}/avahi/ %{python3_sitelib}/avahi/
%changelog %changelog
* Tue Sep 22 2015 Rex Dieter <rdieter@fedoraproject.org> 0.6.31-42
- treat "Invalid response packet from host" as avahi_log_debug (#1240711)
* Fri Sep 18 2015 Richard Hughes <rhughes@redhat.com> - 0.6.31-41 * Fri Sep 18 2015 Richard Hughes <rhughes@redhat.com> - 0.6.31-41
- Remove no longer required AppData file - Remove no longer required AppData file