summaryrefslogtreecommitdiffstats
path: root/support/export/client.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2009-04-15 11:34:51 -0400
committerSteve Dickson <steved@redhat.com>2009-04-15 11:34:51 -0400
commit59189376db057ae08a710cb2b258426230f687d7 (patch)
treeeaaa29a21dc4ff60b4485c27a25925d304656129 /support/export/client.c
parent4b27decace00754006d854a4bbbaa7dd305cba1c (diff)
downloadnfs-utils-59189376db057ae08a710cb2b258426230f687d7.tar.gz
nfs-utils-59189376db057ae08a710cb2b258426230f687d7.tar.xz
nfs-utils-59189376db057ae08a710cb2b258426230f687d7.zip
nfs-utils: store the address given in the upcall for later use
The current upcall could be more efficient. We first convert the address to a hostname, and then later when we set up the RPC client, we do a hostname lookup to convert it back to an address. Begin to change this by keeping the address in the clnt_info that we get out of the upcall. Since a sockaddr has a port field, we can also eliminate the port from the clnt_info. Finally, switch to getnameinfo() instead of gethostbyaddr(). We'll need to use that call anyway when we add support for IPv6. Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/export/client.c')
0 files changed, 0 insertions, 0 deletions