ports/net/mDNSResponder
Doug Rabson
dfr at nlsystems.com
Sun May 8 06:36:23 PDT 2005
On Sunday 08 May 2005 13:47, Roman Neuhauser wrote:
> # dfr at nlsystems.com / 2005-05-08 13:05:05 +0100:
> > I was just playing with mdnsd (mDNSResponder-107.1) and I had some
> > problems with it. As it turned out, it was completely failing to
> > parse the interface list. The attached patch appears to fix this.
> >
> > I also spent a little time hacking on the nss_mdns thingy to make
> > it with with our version of nss. I've attached that too, for your
> > amusement.
>
> The attachments didn't make it to the list.
How frustrating. Here is the important one inline. The nss_mdns.c I will
send to anyone who asks.
--- mDNSPosix/mDNSUNP.c.orig Sun May 8 11:58:35 2005
+++ mDNSPosix/mDNSUNP.c Sun May 8 11:57:31 2005
@@ -331,7 +331,8 @@
ifr = (struct ifreq *) ptr;
len = GET_SA_LEN(ifr->ifr_addr);
- ptr += sizeof(struct ifreq); /* for next one in buffer */
+ //ptr += sizeof(struct ifreq); /* for next one in buffer */
+ ptr += len + sizeof(ifr->ifr_name); /* for next one in buffer */
// fprintf(stderr, "intf %d name=%s AF=%d\n", index,
ifr->ifr_name, ifr->ifr_addr.sa_family);
More information about the freebsd-ports
mailing list