From owner-freebsd-current Fri Jul 26 10:14:58 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C265237B400 for ; Fri, 26 Jul 2002 10:14:56 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A58F43E3B for ; Fri, 26 Jul 2002 10:14:56 -0700 (PDT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 59045AE272; Fri, 26 Jul 2002 10:14:56 -0700 (PDT) Date: Fri, 26 Jul 2002 10:14:56 -0700 From: Alfred Perlstein To: Bakul Shah Cc: Ian Dowse , current@freebsd.org Subject: Re: mount_nfs -T breakage Message-ID: <20020726171456.GC76284@elvis.mu.org> References: <200207260119.aa77821@salmon.maths.tcd.ie> <200207260613.CAA26408@glatton.cnchost.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200207260613.CAA26408@glatton.cnchost.com> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Bakul Shah [020725 23:14] wrote: > > Yes, that code is very broken indeed. It probably was supposed to > > call __rpc_setconf("udp") and not getnetconfigent("udp"), but that > > seems to pick up an ipv6 address. I think the best plan is to go > > back to the way that part of the code was before revision 1.10. > > > > Could you try the following patch? > > Thank you for the patch! Yes, it works. Right after I sent > out my message I tried an almost identical patch which also > worked but, as I said I don't understand this code, didn't > have time to understand it and my patch seemed a bit hacky so > I kept quiet. Actually this whole routine seems hacky -- why > look up "udp" when you are told explicitly to use tcp? Oh > well, I should keep quiet until I really understand it:-) Ian, can you commit this fix? -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message