From: Lennart Poettering Date: Wed, 8 Aug 2007 14:28:58 +0000 (+0000) Subject: Fix autoipd on Linux, bug fix from Pauline Yeung X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=9247d610deb3842f28ca81a9b9aad2f4ec2ff2f1;p=catta Fix autoipd on Linux, bug fix from Pauline Yeung git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1503 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-autoipd/main.c b/avahi-autoipd/main.c index 3271d83..814b990 100644 --- a/avahi-autoipd/main.c +++ b/avahi-autoipd/main.c @@ -510,7 +510,7 @@ static int send_packet(int fd, int iface, ArpPacket *packet, size_t packet_len) sa.sll_halen = ETHER_ADDRLEN; 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; }