cifs: account for IPv6 in ses->serverName and clean up netbios name handling
authorJeff Layton <jlayton@redhat.com>
Mon, 1 Dec 2008 20:23:50 +0000 (15:23 -0500)
committerSteve French <sfrench@us.ibm.com>
Fri, 26 Dec 2008 02:29:09 +0000 (02:29 +0000)
commit8ecaf67a8ea58c8f131ff045475c74e9538d6b7a
tree115e941e0c13e633b7cb5fb9c9307c4e108533ad
parent954d7a1cf12158fed23dd8b0f3f563d5a5c97f28
cifs: account for IPv6 in ses->serverName and clean up netbios name handling

The current code for setting the session serverName is IPv4-specific.
Allow it to be an IPv6 address as well. Use NIP* macros to set the
format.

This also entails increasing the length of the serverName field, so
declare a new macro for RFC1001 name length and use it in the
appropriate places.

Finally, drop the unicode_server_Name field from TCP_Server_Info since
it's not used. We can add it back later if needed, but for now it just
wastes memory.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsglob.h
fs/cifs/connect.c