Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Sep 2009 17:49:50 -0400 (EDT)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        svn-src-head@FreeBSD.org, Rick Macklem <rmacklem@FreeBSD.org>, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: svn commit: r197298 - head/sbin/mount_nfs
Message-ID:  <Pine.GSO.4.63.0909191739260.27642@muncher.cs.uoguelph.ca>
In-Reply-To: <4AB495DD.1010006@FreeBSD.org>
References:  <200909171908.n8HJ8GQs067202@svn.freebsd.org> <4AB35086.90502@FreeBSD.org> <Pine.GSO.4.63.0909181100340.15785@muncher.cs.uoguelph.ca> <4AB495DD.1010006@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help


On Sat, 19 Sep 2009, John Baldwin wrote:

>> It happens that it still uses UDP for Portmapper by default and when
>> "tcp" is specified, but that is down inside the libc functions and there
>> are comments in them along the lines of "always use UDP first...", so
>> I don't intend to change those.
>
> Hmm, it might actually be nice to be able to change those at some point as 
> well.  I have looked at this in the past and it is quite deeply buried in 
> libc. :-/
>
Well, the function is called __rpcb_findaddr_timed() and the "nconf" 
argument to it specifies udp or tcp in it, so I don't think it would be 
hard to change the function to use the info. in the nconf argument.

The scary part would be finding out what breaks after you do it. The
comment I alluded to is the following:
 		/*
 		 * Try UDP only - there are some portmappers out
 		 * there that use UDP only.
 		 */

It looks like the newer rpcbind impelementations would be ok, but
who knows until you try it??

I'd at least say it isn't a change for 8.0 imho, rick




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.63.0909191739260.27642>