svn commit: r197298 - head/sbin/mount_nfs

Rick Macklem rmacklem at uoguelph.ca
Sat Sep 19 21:44:18 UTC 2009



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



More information about the svn-src-head mailing list