summaryrefslogtreecommitdiffstats
path: root/utils/mountd/cache.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-03-13 14:39:49 +1100
committerNeil Brown <neilb@suse.de>2007-03-13 14:39:49 +1100
commit7f9343a38c031d9cc61a6bc7e06df519b16d1293 (patch)
treeb6aba3d7909bf6aaa0b1ac1f12e2c4acd0c32621 /utils/mountd/cache.c
parent813ac37954352d3ca597cdcf895fc5aec22dec15 (diff)
downloadnfs-utils-7f9343a38c031d9cc61a6bc7e06df519b16d1293.tar.gz
nfs-utils-7f9343a38c031d9cc61a6bc7e06df519b16d1293.tar.xz
nfs-utils-7f9343a38c031d9cc61a6bc7e06df519b16d1293.zip
Restore use of un-connected socket for UDP mount requests.
When connecting to an NFSv4 server we need to find out IP address as it would be seen by the server, to register an address for callbacks. This is most easily done by connecting the socket to the servers address and then getting the address of our endpoint. However with a connected UDP socket, replies that come from a different IP address - as can happen with non-Linux multi-homed servers - will be rejected. So if we connected our UDP socket, we need to be sure to disconnect it before using it. This patch adds an option to get_socket to say if we want it connected or not and, in the case where we do, we disconnect a UDP socket after the connection information has been used. Also clean up the error handling in clnt_ping which was getting clumsy.
Diffstat (limited to 'utils/mountd/cache.c')
0 files changed, 0 insertions, 0 deletions