summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2008-11-14 03:35:10 +0000
committerSteve French <sfrench@us.ibm.com>2008-11-14 03:35:10 +0000
commit3ec332ef7a38c2327e18d087d4120a8e3bd3dc6e (patch)
tree5c1c7aebeee05cbd6cd02d5aebb3b0c2f8e62ddb /fs/cifs/cifsglob.h
parentfb396016647ae9de5b3bd8c4ee4f7b9cc7148bd5 (diff)
downloadop-kernel-dev-3ec332ef7a38c2327e18d087d4120a8e3bd3dc6e.zip
op-kernel-dev-3ec332ef7a38c2327e18d087d4120a8e3bd3dc6e.tar.gz
[CIFS] clean up server protocol handling
We're currently declaring both a sockaddr_in and sockaddr6_in on the stack, but we really only need storage for one of them. Declare a sockaddr struct and cast it to the proper type. Also, eliminate the protocolType field in the TCP_Server_Info struct. It's redundant since we have a sa_family field in the sockaddr anyway. We may need to revisit this if SCTP is ever implemented, but for now this will simplify the code. CIFS over IPv6 also has a number of problems currently. This fixes all of them that I found. Eventually, it would be nice to move more of the code to be protocol independent, but this is a start. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index d6357dc..13dc484 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -85,8 +85,7 @@ enum securityEnum {
};
enum protocolEnum {
- IPV4 = 0,
- IPV6,
+ TCP = 0,
SCTP
/* Netbios frames protocol not supported at this time */
};
OpenPOWER on IntegriCloud