From owner-freebsd-sparc64@FreeBSD.ORG Fri Aug 6 03:41:21 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9A6D16A4CE for ; Fri, 6 Aug 2004 03:41:21 +0000 (GMT) Received: from ns.kt-is.co.kr (ns.kt-is.co.kr [211.218.149.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 549BF43D48 for ; Fri, 6 Aug 2004 03:41:21 +0000 (GMT) (envelope-from yongari@kt-is.co.kr) Received: from michelle.kt-is.co.kr (ns2.kt-is.co.kr [220.76.118.193]) (authenticated bits=128) by ns.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i763dHAh004108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 6 Aug 2004 12:39:17 +0900 (KST) Received: from michelle.kt-is.co.kr (localhost.kt-is.co.kr [127.0.0.1]) by michelle.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i763eYiH016858 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 6 Aug 2004 12:40:34 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Received: (from yongari@localhost) by michelle.kt-is.co.kr (8.12.10/8.12.10/Submit) id i763eYeN016857; Fri, 6 Aug 2004 12:40:34 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Date: Fri, 6 Aug 2004 12:40:34 +0900 From: Pyun YongHyeon To: Sten Spans Message-ID: <20040806034034.GC16618@kt-is.co.kr> References: <20040731061132.GC19761@kt-is.co.kr> <20040804110314.GA9602@kt-is.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Filter-Version: 1.11a (ns.kt-is.co.kr) cc: sparc64@freebsd.org Subject: Re: ifconfig(8) mediaopt bug and temporary fix X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: yongari@kt-is.co.kr List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 03:41:21 -0000 On Fri, Aug 06, 2004 at 02:15:55AM +0200, Sten Spans wrote: > On Wed, 4 Aug 2004, Pyun YongHyeon wrote: > > > On Sat, Jul 31, 2004 at 03:11:32PM +0900, To sparc64@freebsd.org wrote: > > > > Here is better patch. This should fix the two bugs of ifconfig(8) > > on big-endian machines. > > > > > > bug #1 > > When mediaopt full-duplex was set, global variable ifr.ifr_media > > is set to selected media option. Therefore the next reference to > > "ifr.ifr_addr.sa_family" is wrong since the value was overwritten > > by selected media option. > > > > bug #2 > > According to bug #1, "ifr.ifr_addr.sa_family" now has the value > > AF_APPLETALK. So checkatrange() is called and "addreq.ifra_addr" > > is modified. Now if ifconfig(8) has a new address to set, it > > incorrectly use the corrupted "addreq". This yield bind(2) > > error(EADDRNOTAVAIL) for assigned IP address. > > > > Cool. Let's hope this gets committed soon. > This bug was a big pita when you have al your > cisco's set to 100/fd. > > Thanks for the debugging. > I'll commit it monday after receiving approval of mentors. > -- > Sten Spans > > "There is a crack in everything, that's how the light gets in." > Leonard Cohen - Anthem Regards, Pyun YongHyeon -- Pyun YongHyeon