[avahi] malformed ARP in avahi-0.6.18 to avahi-0.6.20
Yeung, Pauline
Pauline.Yeung at sciatl.com
Sun Aug 5 18:22:16 PDT 2007
I'm new to the lists, and I'm sure which lists should I report bugs.
I tested avahi-autoipd from release 0.6.18, 0.6.19 and 0.6.20 in two platforms, x86 running Linux 2.6.20-1.2962.fc6, and MIPS running linux 2.6.14. In all 6 cases, the ARP packets are malformed when captured with "wireshark".
Here is the patch that fixed the problem.
--- avahi-0.6.20.orig/avahi-autoipd/main.c 2007-08-05 15:05:19.000000000 -0700
+++ avahi-0.6.20/avahi-autoipd/main.c 2007-08-05 15:05:40.000000000 -0700
@@ -510,7 +510,7 @@
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;
}
Thanks
Pauline Yeung
- - - - - Appended by Scientific Atlanta, a Cisco company - - - - -
This e-mail and any attachments may contain information which is confidential,
proprietary, privileged or otherwise protected by law. The information is solely
intended for the named addressee (or a person responsible for delivering it to
the addressee). If you are not the intended recipient of this message, you are
not authorized to read, print, retain, copy or disseminate this message or any
part of it. If you have received this e-mail in error, please notify the sender
immediately by return e-mail and delete it from your computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/avahi/attachments/20070805/fdb86b76/attachment.html
More information about the avahi
mailing list