diff --git a/avahi-0.6.20-arp-packet-fix.patch b/avahi-0.6.20-arp-packet-fix.patch new file mode 100644 index 0000000..4b8ff89 --- /dev/null +++ b/avahi-0.6.20-arp-packet-fix.patch @@ -0,0 +1,11 @@ +Index: /trunk/avahi-autoipd/main.c +=================================================================== +--- /trunk/avahi-autoipd/main.c (revision 1488) ++++ /trunk/avahi-autoipd/main.c (revision 1503) +@@ -511,5 +511,5 @@ + memset(sa.sll_addr, 0xFF, ETHER_ADDRLEN); + +- if (sendto(fd, packet, packet_len, 0, (struct sockaddr*) &sa, sizeof(sa)) < 0) { ++ if (sendto(fd, packet->ether_payload, packet_len, 0, (struct sockaddr*) &sa, sizeof(sa)) < 0) { + daemon_log(LOG_ERR, "sendto() failed: %s", strerror(errno)); + return -1; diff --git a/avahi.spec b/avahi.spec index 02db5e3..e50ba45 100644 --- a/avahi.spec +++ b/avahi.spec @@ -6,7 +6,7 @@ %endif Name: avahi Version: 0.6.20 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Local network service discovery Group: System Environment/Base License: LGPL @@ -38,6 +38,7 @@ Source0: http://avahi.org/download/%{name}-%{version}.tar.gz # enable mono's mcs to work in beehive buildroot: Patch0: avahi-0.6.20-cleanup-dns-compression-table.patch Patch1: avahi-0.6.20-make-known-answers-not-conflict.patch +Patch2: avahi-0.6.20-arp-packet-fix.patch Patch6: avahi-0.6.3-MONO_SHARED_DIR.patch %description @@ -208,9 +209,10 @@ fashion with mDNS. %prep %setup -q -%if %{WITH_MONO} %patch0 -p0 -b .cleanup-dns-compression-table %patch1 -p2 -b .make-known-answers-not-conflict +%patch2 -p2 -b .arp-packet-fix +%if %{WITH_MONO} %patch6 -p1 -b .MONO_SHARED_DIR %endif @@ -466,6 +468,10 @@ fi %endif %changelog +* Thu Aug 9 2007 Lennart Poettering - 0.6.20-6 +- fix avahi-autoipd corrupt packet bug +- drop dependency on python for the main package + * Wed Jul 11 2007 Lennart Poettering - 0.6.20-5 - add two patches which are important to get RR updating work properly. Will be part of upstream 0.6.21