From owner-freebsd-ports@FreeBSD.ORG Sun May 8 13:36:23 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72B0B16A4E8; Sun, 8 May 2005 13:36:23 +0000 (GMT) Received: from itchy.rabson.org (mailgate.nlsystems.com [80.177.232.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D60743D8E; Sun, 8 May 2005 13:36:22 +0000 (GMT) (envelope-from dfr@nlsystems.com) Received: from herring.rabson.org (herring [10.0.0.2]) by itchy.rabson.org (8.13.3/8.12.11) with ESMTP id j48DaH3f038588; Sun, 8 May 2005 14:36:17 +0100 (BST) (envelope-from dfr@nlsystems.com) From: Doug Rabson To: Roman Neuhauser Date: Sun, 8 May 2005 14:36:15 +0100 User-Agent: KMail/1.8 References: <200505081305.06022.dfr@nlsystems.com> <20050508124724.GC3232@isis.sigpipe.cz> In-Reply-To: <20050508124724.GC3232@isis.sigpipe.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505081436.16445.dfr@nlsystems.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on itchy.rabson.org X-Virus-Scanned: ClamAV 0.83/871/Thu May 5 14:50:45 2005 on itchy.rabson.org X-Virus-Status: Clean cc: ports@freebsd.org cc: ahze@freebsd.org Subject: Re: ports/net/mDNSResponder X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 13:36:23 -0000 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);