ports/80856: net/mDNSResponder: mdnsd finds no interfaces, then exits

Bruce Walker bmw at borderware.com
Tue May 10 12:50:03 UTC 2005


>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 at 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 at 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:



More information about the freebsd-ports-bugs mailing list