From owner-freebsd-ports-bugs@FreeBSD.ORG Tue May 10 12:50:03 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D60116A4CE for ; Tue, 10 May 2005 12:50:03 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D41C243D8E for ; Tue, 10 May 2005 12:50:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4ACo25L045947 for ; Tue, 10 May 2005 12:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4ACo2XA045946; Tue, 10 May 2005 12:50:02 GMT (envelope-from gnats) Resent-Date: Tue, 10 May 2005 12:50:02 GMT Resent-Message-Id: <200505101250.j4ACo2XA045946@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bruce Walker Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AFE016A4CE for ; Tue, 10 May 2005 12:41:51 +0000 (GMT) Received: from mail.borderware.com (mail.borderware.com [207.236.65.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EB5D43D5D for ; Tue, 10 May 2005 12:41:50 +0000 (GMT) (envelope-from bmw@borderware.com) Message-Id: <20050510124147.998AF54AA@hardbop.borderware.com> Date: Tue, 10 May 2005 08:41:47 -0400 (EDT) From: Bruce Walker To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/80856: net/mDNSResponder: mdnsd finds no interfaces, then exits X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Bruce Walker List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 12:50:03 -0000 >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: