avahi/avahi-0.6.20-arp-packet-fix.patch
2007-08-09 13:18:44 +00:00

12 lines
556 B
Diff

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;