Date: Tue, 10 May 2005 08:41:47 -0400 (EDT) From: Bruce Walker <bmw@borderware.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/80856: net/mDNSResponder: mdnsd finds no interfaces, then exits Message-ID: <20050510124147.998AF54AA@hardbop.borderware.com> Resent-Message-ID: <200505101250.j4ACo2XA045946@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 80856 >Category: ports >Synopsis: net/mDNSResponder: mdnsd finds no interfaces, then exits >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 10 12:50:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Bruce Walker >Release: FreeBSD 5.4-BETA1 i386 >Organization: BorderWare Technologies Inc. >Environment: System: FreeBSD mx1000-classic.borderware.com 5.4-BETA1 FreeBSD 5.4-BETA1 #0: Fri Apr 1 11:00:20 EST 2005 root@mx1000-classic.borderware.com:/usr/src/sys/i386/compile/MX1000CLASSIC_SMP i386 Also tested on ... FreeBSD hardbop.borderware.com 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Tue May 25 22:47:12 GMT 2004 root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: The mdnsd daemon in the net/mDNSResponder port has an Apple-origin bug that causes it to not see any interfaces while coming up. It simply exits. The mDNSResponder system (library and utilities) is useless without the mdnsd running. >How-To-Repeat: /usr/local/sbin/mdnsd you will see no daemon if you ps for it. /usr/local/sbin/mdnsd -debug You will see "starting" followed imeediately by "stopping" >Fix: Add this patch as "patch-ab" to net/mDNSResponder/files and reinstall. I took this replacement line from the previous release (98_1). --- patch-ab --- *** mDNSPosix/mDNSUNP.c.orig Mon May 9 22:01:35 2005 --- mDNSPosix/mDNSUNP.c Mon May 9 22:02:22 2005 *************** *** 331,337 **** ifr = (struct ifreq *) ptr; len = GET_SA_LEN(ifr->ifr_addr); ! ptr += sizeof(struct ifreq); /* for next one in buffer */ // fprintf(stderr, "intf %d name=%s AF=%d\n", index, ifr->ifr_name, ifr->ifr_addr.sa_family); --- 331,337 ---- ifr = (struct ifreq *) ptr; len = GET_SA_LEN(ifr->ifr_addr); ! ptr += sizeof(ifr->ifr_name) + len; /* for next one in buffer */ // fprintf(stderr, "intf %d name=%s AF=%d\n", index, ifr->ifr_name, ifr->ifr_addr.sa_family); --- end patch-ab --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050510124147.998AF54AA>