Date: Sun, 8 May 2005 14:36:15 +0100 From: Doug Rabson <dfr@nlsystems.com> To: Roman Neuhauser <neuhauser@sigpipe.cz> Cc: ahze@freebsd.org Subject: Re: ports/net/mDNSResponder Message-ID: <200505081436.16445.dfr@nlsystems.com> In-Reply-To: <20050508124724.GC3232@isis.sigpipe.cz> References: <200505081305.06022.dfr@nlsystems.com> <20050508124724.GC3232@isis.sigpipe.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 08 May 2005 13:47, Roman Neuhauser wrote: > # dfr@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505081436.16445.dfr>