getting a callback ip address for nfsv4 client
Robert Watson
rwatson at FreeBSD.org
Mon Apr 6 03:48:31 PDT 2009
On Sun, 5 Apr 2009, Julian Elischer wrote:
>> One possibility is to connect() a socket to the server address, then call
>> getsockaddr() to query what address the network stack is using. If the
>> connection completed, then the address could at least send packets to the
>> server, even if it isn't reachable from the server.
>>
>> (Obviously, kernel versions of the above...)
>
> we ended up with him doing "whatever the connect code would have done" since
> as he is in fact inside the kernel, he can just do the same..
I figured that if the RPC layer was going to make a connection anyway, we
could just query the RPC layer and ask it what address it had used. However,
if the decision needs to be made earlier than that, then that doesn't make as
much sense. This would mean NFS could avoid knowing about routes and
interfaces, and just know about sockets and addresses.
Robert N M Watson
Computer Laboratory
University of Cambridge
More information about the freebsd-arch
mailing list