aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-12-10 14:59:28 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-01-30 02:05:57 -0500
commit4c5680177012a2b5c0f3fdf58f4375dd84a1da67 (patch)
treed3d9e599291b4f9b738d02c3913b13541b100487 /fs/nfs/internal.h
parent9412b92772c1d80ea8284583b6aad0260e13515f (diff)
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 {
42 char *client_address; 42 char *client_address;
43 43
44 struct { 44 struct {
45 struct sockaddr_in address; 45 struct sockaddr_storage address;
46 size_t addrlen;
46 char *hostname; 47 char *hostname;
47 unsigned int version; 48 unsigned int version;
48 unsigned short port; 49 unsigned short port;
@@ -50,7 +51,8 @@ struct nfs_parsed_mount_data {
50 } mount_server; 51 } mount_server;
51 52
52 struct { 53 struct {
53 struct sockaddr_in address; 54 struct sockaddr_storage address;
55 size_t addrlen;
54 char *hostname; 56 char *hostname;
55 char *export_path; 57 char *export_path;
56 int protocol; 58 int protocol;