]> git.meshlink.io Git - catta/commitdiff
Fix autoipd on Linux, bug fix from Pauline Yeung
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Aug 2007 14:28:58 +0000 (14:28 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 8 Aug 2007 14:28:58 +0000 (14:28 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1503 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-autoipd/main.c

index 3271d83e8f6f0af56f2d1dbe4ff411e85f481d80..814b99025be51ab7a900d77f3129977a203f50ed 100644 (file)
@@ -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;
     }