From c4f24b388a1fc53c91618ac2baf730a240c4b978 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Tue, 22 Sep 2015 08:25:33 -0500 Subject: [PATCH] treat "Invalid response packet from host" as avahi_log_debug (#1240711) --- avahi-0.6.31-invalid_packet.patch | 11 +++++++---- avahi.spec | 5 ++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/avahi-0.6.31-invalid_packet.patch b/avahi-0.6.31-invalid_packet.patch index 3240a56..0c11945 100644 --- a/avahi-0.6.31-invalid_packet.patch +++ b/avahi-0.6.31-invalid_packet.patch @@ -1,7 +1,7 @@ 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 2015-09-17 10:38:46.973153235 -0500 -@@ -972,9 +972,7 @@ static void dispatch_packet(AvahiServer +--- 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; } @@ -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) { + 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; + } + diff --git a/avahi.spec b/avahi.spec index af58032..583f7a6 100644 --- a/avahi.spec +++ b/avahi.spec @@ -18,7 +18,7 @@ Name: avahi Version: 0.6.31 -Release: 41%{?dist} +Release: 42%{?dist} Summary: Local network service discovery License: LGPLv2+ URL: http://avahi.org @@ -705,6 +705,9 @@ exit 0 %{python3_sitelib}/avahi/ %changelog +* Tue Sep 22 2015 Rex Dieter 0.6.31-42 +- treat "Invalid response packet from host" as avahi_log_debug (#1240711) + * Fri Sep 18 2015 Richard Hughes - 0.6.31-41 - Remove no longer required AppData file