summaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorChuck Lever2007-12-10 20:59:28 +0100
committerTrond Myklebust2008-01-30 08:05:57 +0100
commit4c5680177012a2b5c0f3fdf58f4375dd84a1da67 (patch)
treed3d9e599291b4f9b738d02c3913b13541b100487 /fs/nfs/internal.h
parentNFS: Refactor mount option address parsing into separate function (diff)
downloadkernel-qcow2-linux-4c5680177012a2b5c0f3fdf58f4375dd84a1da67.tar.gz
kernel-qcow2-linux-4c5680177012a2b5c0f3fdf58f4375dd84a1da67.tar.xz
kernel-qcow2-linux-4c5680177012a2b5c0f3fdf58f4375dd84a1da67.zip
NFS: Support non-IPv4 addresses in nfs_parsed_mount_data
Replace the nfs_server and mount_server address fields in the nfs_parsed_mount_data structure with a "struct sockaddr_storage" instead of a "struct sockaddr_in". Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Aurelien Charbon <aurelien.charbon@ext.bull.net> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r--fs/nfs/internal.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index 75dd4e252cae..a80621199086 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -42,7 +42,8 @@ struct nfs_parsed_mount_data {
char *client_address;
struct {
- struct sockaddr_in address;
+ struct sockaddr_storage address;
+ size_t addrlen;
char *hostname;
unsigned int version;
unsigned short port;
@@ -50,7 +51,8 @@ struct nfs_parsed_mount_data {
} mount_server;
struct {
- struct sockaddr_in address;
+ struct sockaddr_storage address;
+ size_t addrlen;
char *hostname;
char *export_path;
int protocol;